Skip to content

Commit 3e6e5f6

Browse files
authored
Merge pull request #41 from PowerShell/updateRepo
2 parents c98e2fa + 2e7d0db commit 3e6e5f6

File tree

6 files changed

+42
-33
lines changed

6 files changed

+42
-33
lines changed

.ci/releaseBuild.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# The name of the build that will be seen in mscodehub
2-
name: CompatPowerShellget-Release-$(Build.BuildId)
2+
name: PowerShellGet-Release-$(Build.BuildId)
3+
34
# how is the build triggered
45
# since this is a release build, no trigger as it's a manual release
56
trigger: none
@@ -38,7 +39,7 @@ stages:
3839
- ImageOverride -equals PSMMS2019-Secure
3940
jobs:
4041
- job: Build_Job
41-
displayName: Build Microsoft.PowerShell.CompatPowerShellGet
42+
displayName: Build Microsoft.PowerShell.PowerShellGet
4243
# note the variable reference to ESRP.
4344
# this must be created in Project -> Pipelines -> Library -> VariableGroups
4445
# where it describes the link to the SigningServer
@@ -49,14 +50,14 @@ stages:
4950

5051
# these are setting vso variables which will be persisted between stages
5152
- pwsh: |
52-
$signSrcPath = "$(Build.SourcesDirectory)/CompatPowerShellGet/src"
53+
$signSrcPath = "$(Build.SourcesDirectory)/PowerShellGet/src"
5354
dir
5455
# Set signing src path variable
5556
$vstsCommandString = "vso[task.setvariable variable=signSrcPath]${signSrcPath}"
5657
Write-Host "sending " + $vstsCommandString
5758
Write-Host "##$vstsCommandString"
5859
59-
$signOutPath = "$(Build.SourcesDirectory)/OSS_Microsoft_CompatPowerShellGet/signed/CompatPowerShellGet"
60+
$signOutPath = "$(Build.SourcesDirectory)/OSS_Microsoft_CompatPowerShellGet/signed/PowerShellGet"
6061
$null = New-Item -ItemType Directory -Path $signOutPath
6162
# Set signing out path variable
6263
$vstsCommandString = "vso[task.setvariable variable=signOutPath]${signOutPath}"
@@ -69,7 +70,7 @@ stages:
6970
Write-Host "##$vstsCommandString"
7071
7172
# Get version and create a variable
72-
$moduleData = Import-PowerShellDataFile "$(Build.SourcesDirectory)/CompatPowerShellGet/src/CompatPowerShellGet.psd1"
73+
$moduleData = Import-PowerShellDataFile "$(Build.SourcesDirectory)/PowerShellGet/src/PowerShellGet.psd1"
7374
$moduleVersion = $moduleData.ModuleVersion
7475
$vstsCommandString = "vso[task.setvariable variable=moduleVersion]${moduleVersion}"
7576
Write-Host "sending " + $vstsCommandString
@@ -118,7 +119,7 @@ stages:
118119

119120
- pwsh: |
120121
$nupkgPath = "$(localRepo)"
121-
$artifactName = "CompatPowerShellGet"
122+
$artifactName = "PowerShellGet"
122123
Write-Host "##vso[artifact.upload containerfolder=$artifactName;artifactname=$artifactName;]$nupkgPath"
123124
displayName: Upload module artifact
124125
@@ -141,7 +142,7 @@ stages:
141142
- template: script-module-compliance.yml@ComplianceRepo
142143
parameters:
143144
# component-governance - the path to sources
144-
sourceScanPath: '$(Build.SourcesDirectory)/CompatPowerShellGet'
145+
sourceScanPath: '$(Build.SourcesDirectory)/PowerShellGet'
145146
# TermCheck
146147
optionsRulesDBPath: ''
147148
optionsFTPath: ''
@@ -160,26 +161,26 @@ stages:
160161
- ImageOverride -equals PSMMS2019-Secure
161162
jobs:
162163
- job: Publish_Job
163-
displayName: Build Microsoft.PowerShell.CompatPowerShellGet
164+
displayName: Build Microsoft.PowerShell.PowerShellGet
164165
steps:
165166
- checkout: self
166167

167168
- task: DownloadPipelineArtifact@2
168169
displayName: 'Download PowerShellGet module artifacts'
169170
inputs:
170-
artifact: CompatPowerShellGet
171+
artifact: PowerShellGet
171172
patterns: '**/*.nupkg'
172173
downloadPath: '$(Pipeline.Workspace)/nuget'
173174

174175
- pwsh: |
175-
$package = (Get-ChildItem '$(Pipeline.Workspace)/nuget/CompatPowerShellGet.*.nupkg').FullName
176+
$package = (Get-ChildItem '$(Pipeline.Workspace)/nuget/PowerShellGet.*.nupkg').FullName
176177
$vstsCommandString = "vso[task.setvariable variable=NugetPkgPath]${package}"
177178
Write-Host "sending " + $vstsCommandString
178179
Write-Host "##$vstsCommandString"
179180
displayName: 'Capture PowerShellGet module NuGet package path and set environment variable'
180181
181182
- task: NuGetCommand@2
182-
displayName: 'Push CompatPowerShellGet module artifacts to PSGallery feed'
183+
displayName: 'Push PowerShellGet module artifacts to PSGallery feed'
183184
inputs:
184185
command: push
185186
packagesToPush: '$(NugetPkgPath)'

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Changelog
2+
### 0.9.0
3+
4+
### 0.0.4
5+
* Changes
6+
- Update module to be compatible with latest version of PowerShellGet (3.0.21-beta21)
7+
28
### 0.0.3
39
* Changes
410
- Updated reference to PowerShellGet 'Url' parameter to 'Uri' to reflect changes made in PowerShellGet

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# CompatPowerShellGet
1+
# PowerShellGet
22

3-
[![PowerShell Gallery - CompatPowerShellGet](https://img.shields.io/badge/PowerShell%20Gallery-PowerShellGet-blue.svg)](https://www.powershellgallery.com/packages/CompatPowerShellGet)
4-
[![Minimum Supported PowerShell Version](https://img.shields.io/badge/PowerShell-3.0-blue.svg)](https://github.com/PowerShell/CompatPowerShellGet)
3+
[![PowerShell Gallery - PowerShellGet](https://img.shields.io/badge/PowerShell%20Gallery-PowerShellGet-blue.svg)](https://www.powershellgallery.com/packages/PowerShellGet)
4+
[![Minimum Supported PowerShell Version](https://img.shields.io/badge/PowerShell-5.1-blue.svg)](https://github.com/PowerShell/PowerShellGet)
55

66

77
Introduction
88
============
9-
CompatPowerShellGet is a compatibility module that allows use of PowerShellGet 2.x (and below) cmdlet syntax with PowerShellGet 3.0 (and newer) functionality by making a best effort mapping between the cmdlet interfaces of both versions of the module.'
9+
PowerShellGet v3 is a compatibility module that allows use of PowerShellGet 2.x (and below) cmdlet syntax with PSResourceGet functionality by making a best effort mapping between the cmdlet interfaces of both versions of the module.'
1010

1111
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
1212
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
@@ -16,39 +16,39 @@ questions or comments.
1616
Documentation
1717
=============
1818

19-
Documentation for CompatPowerShellGet has not yet been published, please
19+
Documentation for PowerShellGet has not yet been published, please
2020
[Click here](https://docs.microsoft.com/powershell/module/PowerShellGet/?view=powershell-7)
2121
to reference the documentation for previous versions of PowerShellGet.
2222

2323
Requirements
2424
============
2525

26-
- Windows PowerShell 3.0 or newer.
26+
- Windows PowerShell 5.1 or newer.
2727
- PowerShell Core.
2828

2929

30-
Get CompatPowerShellGet Module
30+
Get PowerShellGet Module
3131
========================
3232

33-
Please refer to our [documentation](https://www.powershellgallery.com/packages/CompatPowerShellGet/) for the up-to-date version on how to get the CompatPowerShellGet Module.
33+
Please refer to our [documentation](https://www.powershellgallery.com/packages/PowerShellGet/) for the up-to-date version on how to get the PowerShellGet Module.
3434

3535

3636
Get PowerShellGet Source
3737
========================
3838

3939
#### Steps
4040
* Obtain the source
41-
- Download the latest source code from the release page (https://github.com/PowerShell/CompatPowerShellGet/releases) OR
41+
- Download the latest source code from the release page (https://github.com/PowerShell/PowerShellGet/releases) OR
4242
- Clone the repository (needs git)
4343
```powershell
44-
git clone https://github.com/PowerShell/CompatPowerShellGet
44+
git clone https://github.com/PowerShell/PowerShellGet
4545
```
4646
* Navigate to the source directory
4747
```powershell
48-
cd path/to/CompatPowerShellGet
48+
cd path/to/PowerShellGet
4949
```
5050

5151
* Import the module
5252
```powershell
53-
Import-Module src/CompatPowerShellGet
53+
Import-Module src/PowerShellGet -Force
5454
```

SignConfig.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- Config files for Azure DevOps code-signing pipeline. -->
44
<SignConfigXML>
55
<!-- AnyCPU Release sign job -->
6-
<job platform="AnyCPU" configuration="Release" dest="__OUTPATHROOT__\signed" jobname="CompatPowerShellGet" approvers="vigarg;gstolt">
7-
<file src="__INPATHROOT__\src\CompatPowerShellGet.psd1" signType="AuthenticodeFormer" dest="__OUTPATHROOT__\CompatPowerShellGet.psd1" />
8-
<file src="__INPATHROOT__\src\CompatPowerShellGet.psm1" signType="AuthenticodeFormer" dest="__OUTPATHROOT__\CompatPowerShellGet.psm1" />
6+
<job platform="AnyCPU" configuration="Release" dest="__OUTPATHROOT__\signed" jobname="PowerShellGet" approvers="vigarg;gstolt">
7+
<file src="__INPATHROOT__\src\PowerShellGet.psd1" signType="AuthenticodeFormer" dest="__OUTPATHROOT__\PowerShellGet.psd1" />
8+
<file src="__INPATHROOT__\src\PowerShellGet.psm1" signType="AuthenticodeFormer" dest="__OUTPATHROOT__\PowerShellGet.psm1" />
99
</job>
1010
</SignConfigXML>

src/CompatPowerShellGet.psd1 renamed to src/PowerShellGet.psd1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#
2-
# Module manifest for module 'CompatPowerShellGet'
2+
# Module manifest for module 'PowerShellGet'
33
#
44
# Generated by: americks
55
#
66
# Generated on: 7/14/2020
77
#
88

99
@{
10-
RootModule = 'CompatPowerShellGet.psm1'
11-
ModuleVersion = '0.0.4'
10+
RootModule = 'PowerShellGet.psm1'
11+
ModuleVersion = '0.9.0'
1212
GUID = '68ec3ec1-55bf-42f8-9add-d224e5c76548'
1313
Author = 'Microsoft Corporation'
1414
CompanyName = 'Microsoft Corporation'
1515
Copyright = '(c) Microsoft Corporation. All rights reserved.'
16-
Description = 'CompatPowerShellGet is a compatibility module that allows use of PowerShellGet 2.x (and below) cmdlet syntax with PowerShellGet 3.0 (and newer) functionality by making a best effort mapping between the cmdlet interfaces of both versions of the module.'
16+
Description = 'PowerShellGet is a compatibility module that allows use of PowerShellGet 2.x (and below) cmdlet syntax with PSResourceGet functionality by making a best effort mapping between the cmdlet interfaces of both versions of the module.'
1717
PowerShellVersion = '3.0'
1818
FunctionsToExport = @(
1919
"Find-Command",
@@ -51,9 +51,11 @@
5151
'Mac',
5252
'Windows')
5353

54-
LicenseUri = 'https://github.com/PowerShell/CompatPowerShellGet/blob/master/LICENSE'
55-
ProjectUri = 'https://github.com/PowerShell/CompatPowerShellGet'
54+
LicenseUri = 'https://github.com/PowerShell/PowerShellGet/blob/master/LICENSE'
55+
ProjectUri = 'https://github.com/PowerShell/PowerShellGet'
5656
ReleaseNotes = @'
57+
### 0.9.0
58+
5759
### 0.0.4
5860
* Changes
5961
- Update module to be compatible with latest version of PowerShellGet (3.0.21-beta21)
@@ -70,7 +72,7 @@
7072
* Initial release
7173
7274
## For full history of release notes see changelog:
73-
https://github.com/PowerShell/CompatPowerShellGet/blob/master/CHANGELOG.md
75+
https://github.com/PowerShell/PowerShellGet/blob/master/CHANGELOG.md
7476
'@
7577
}
7678
}
File renamed without changes.

0 commit comments

Comments
 (0)