Skip to content

Commit 9df89d9

Browse files
committed
Merge branch 'master' into research-nuget-v3-dependency-resolution
2 parents ffb9975 + 28d241e commit 9df89d9

32 files changed

+792
-181
lines changed

.ci/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- ${{ parameters.powershellExecutable }}: |
4949
$modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
5050
Write-Verbose -Verbose "Install Microsoft.PowerShell.PSResourceGet to temp module path"
51-
Save-Module -Name Microsoft.PowerShell.PSResourceGet -MinimumVersion 0.9.0-rc1 -Path $modulePath -AllowPrerelease -Force
51+
Save-Module -Name Microsoft.PowerShell.PSResourceGet -Path $modulePath -Force -Verbose
5252
Write-Verbose -Verbose "Install Pester 4.X to temp module path"
5353
Save-Module -Name "Pester" -MaximumVersion 4.99 -Path $modulePath -Force
5454
displayName: Install Microsoft.PowerShell.PSResourceGet and Pester
@@ -59,7 +59,7 @@ jobs:
5959
Write-Verbose -Verbose "Importing build utilities (buildtools.psd1)"
6060
Import-Module -Name (Join-Path -Path '${{ parameters.buildDirectory }}' -ChildPath 'buildtools.psd1') -Force
6161
#
62-
Install-ModulePackageForTest -PackagePath "$(System.ArtifactsDirectory)"
62+
Install-ModulePackageForTest -PackagePath "$(System.ArtifactsDirectory)" -ErrorAction stop -Verbose
6363
displayName: Install module for test from downloaded artifact
6464
workingDirectory: ${{ parameters.buildDirectory }}
6565

.pipelines/PSResourceGet-Official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ extends:
152152
inputs:
153153
command: 'sign'
154154
signing_profile: external_distribution
155-
files_to_sign: '**\*.psd1;**\*.psm1;**\*.ps1xml;**\Microsoft*.dll'
155+
files_to_sign: '**\*.ps1;**\*.psd1;**\*.psm1;**\*.ps1xml;**\Microsoft*.dll'
156156
search_root: $(signSrcPath)
157157

158158
- pwsh: |

CHANGELOG/1.0.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
## [1.0.5](https://github.com/PowerShell/PSResourceGet/compare/v1.0.4.1...v1.0.5) - 2024-05-13
88

99
### Bug Fixes
10+
1011
- Update `nuget.config` to use PowerShell packages feed (#1649)
1112
- Refactor V2ServerAPICalls and NuGetServerAPICalls to use object-oriented query/filter builder (#1645 Thanks @sean-r-williams!)
1213
- Fix unnecessary `and` for version globbing in V2ServerAPICalls (#1644 Thanks again @sean-r-williams!)
@@ -422,7 +423,7 @@ All tests have been reviewed and rewritten as needed.
422423

423424
## 3.0.0-beta8
424425

425-
### New Features
426+
### New Features
426427

427428
- Add `-Type` parameter to `Install-PSResource`
428429
- Add 'sudo' check for admin privileges in Unix in `Install-PSResource`
@@ -436,7 +437,7 @@ All tests have been reviewed and rewritten as needed.
436437

437438
## 3.0.0-beta7
438439

439-
### New Features
440+
### New Features
440441

441442
- Completed functionality for `Update-PSResource`
442443
- `Input-Object` parameter for `Install-PSResource`
@@ -499,4 +500,5 @@ All tests have been reviewed and rewritten as needed.
499500
## 3.0.0-beta1
500501

501502
### BREAKING CHANGE
502-
- Preview version of PowerShellGet. Many features are not fully implemented yet. Please see https://devblogs.microsoft.com/powershell/powershellget-3-0-preview1 for more details.
503+
504+
- Preview version of PowerShellGet. Many features are not fully implemented yet. Please see <https://devblogs.microsoft.com/powershell/powershellget-3-0-preview1> for more details.

CHANGELOG/1.1.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## [1.1.0](https://github.com/PowerShell/PSResourceGet/compare/v1.1.0-rc3...v1.1.0) - 2025-01-09
2+
3+
### Bug Fixes
4+
5+
- Bugfix for publishing .nupkg file to ContainerRegistry repository (#1763)
6+
- Bugfix for PMPs like Artifactory needing modified filter query parameter to proxy upstream (#1761)
7+
- Bugfix for ContainerRegistry repository to parse out dependencies from metadata (#1766)
8+
- Bugfix for Install-PSResource Null pointer occurring when package is present only in upstream feed in ADO (#1760)
9+
- Bugfix for local repository casing issue on Linux (#1750)
10+
- Update README.md (#1759)
11+
- Bug fix for case sensitive License.txt when RequireLicense is specified (#1757)
12+
- Bug fix for broken -Quiet parameter for Save-PSResource (#1745)

CHANGELOG/preview.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
## [1.1.0-RC1](https://github.com/PowerShell/PSResourceGet/compare/v1.1.0-preview2...v1.1.0-RC1) - 2024-09-13
1+
## ## [1.1.0-rc3](https://github.com/PowerShell/PSResourceGet/compare/v1.1.0-RC2...v1.1.0-rc3) - 2024-11-15
2+
3+
### Bug Fix
4+
- Include missing commits
5+
6+
7+
## [1.1.0-RC2](https://github.com/PowerShell/PSResourceGet/compare/v1.1.0-RC1...v1.1.0-RC2) - 2024-10-30
8+
9+
### New Features
10+
- Full Microsoft Artifact Registry integration (#1741)
11+
12+
### Bug Fixes
13+
14+
- Update to use OCI v2 APIs for Container Registry (#1737)
15+
- Bug fixes for finding and installing from local repositories on Linux machines (#1738)
16+
- Bug fix for finding package name with 4 part version from local repositories (#1739)
17+
18+
# Preview Changelog
19+
20+
## [1.1.0-RC1](https://github.com/PowerShell/PSResourceGet/compare/v1.1.0-preview2...v1.1.0-RC1) - 2024-10-22
221

322
### New Features
423

@@ -8,9 +27,9 @@
827

928
- Fix packaging name matching when searching in local repositories (#1731)
1029
- `Compress-PSResource` `-PassThru` now passes `FileInfo` instead of string (#1720)
11-
- Fix for `Compress-PSResource` not properly compressing scripts (#1719)
30+
- Fix for `Compress-PSResource` not properly compressing scripts (#1719)
1231
- Add `AcceptLicense` to Save-PSResource (#1718 Thanks @o-l-a-v!)
13-
- Better support for NuGet v2 feeds (#1713 Thanks @o-l-a-v!)
32+
- Better support for Azure DevOps Artifacts NuGet v2 feeds (#1713 Thanks @o-l-a-v!)
1433
- Better handling of `-WhatIf` support in `Install-PSResource` (#1531 Thanks @o-l-a-v!)
1534
- Fix for some nupkgs failing to extract due to empty directories (#1707 Thanks @o-l-a-v!)
1635
- Fix for searching for `-Name *` in `Find-PSResource` (#1706 Thanks @o-l-a-v!)
@@ -34,8 +53,7 @@
3453

3554
### New Features
3655

37-
- Support for Azure Container Registries (#1495, #1497-#1499, #1501, #1502, #1505, #1522, #1545, #1548, #1550, #1554, #1560, #1567,
38-
#1573, #1576, #1587, #1588, #1589, #1594, #1598, #1600, #1602, #1604, #1615)
56+
- Support for Azure Container Registries (#1495, #1497-#1499, #1501, #1502, #1505, #1522, #1545, #1548, #1550, #1554, #1560, #1567, #1573, #1576, #1587, #1588, #1589, #1594, #1598, #1600, #1602, #1604, #1615)
3957

4058
### Bug Fixes
4159

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ C:\> Import-Module C:\Repos\PSResourceGet\out\PSResourceGet
8383
c:\> PowerShell
8484
C:\> Import-Module C:\Repos\PSResourceGet\out\PSResourceGet\PSResourceGet.psd1
8585
```
86+
## Module Support Lifecycle
87+
Microsoft.PowerShell.PSResourceGet follows the support lifecycle of the version of PowerShell that it ships in.
88+
For example, PSResourceGet 1.0.x shipped in PowerShell 7.4 which is an LTS release so it will be supported for 3 years.
89+
Preview versions of the module, or versions that ship in preview versions of PowerShell are not supported.
90+
Versions of PSResourceGet that do not ship in a version of PowerShell will be fixed forward.
8691

8792
## Code of Conduct
8893

buildtools.psm1

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,23 @@ function Install-ModulePackageForTest {
120120
}
121121

122122
Write-Verbose -Verbose -Message "Installing module $($config.ModuleName) to build output path $installationPath"
123-
Save-PSResource -Name $config.ModuleName -Repository $localRepoName -Path $installationPath -SkipDependencyCheck -Prerelease -Confirm:$false -TrustRepository
123+
$psgetModuleBase = (get-command save-psresource).Module.ModuleBase
124+
$psgetVersion = (get-command save-psresource).Module.Version.ToString()
125+
$psgetPrerelease = (get-command find-psresource).module.PrivateData.PSData.Prerelease
126+
Write-Verbose -Verbose -Message "PSResourceGet module base imported: $psgetModuleBase"
127+
Write-Verbose -Verbose -Message "PSResourceGet version base imported: $psgetVersion"
128+
Write-Verbose -Verbose -Message "PSResourceGet prerelease base imported: $psgetPrerelease"
129+
#Save-PSResource -Name $config.ModuleName -Repository $localRepoName -Path $installationPath -SkipDependencyCheck -Prerelease -Confirm:$false -TrustRepository
130+
131+
Register-PSRepository -Name $localRepoName -SourceLocation $packagePathWithNupkg -InstallationPolicy Trusted -Verbose
132+
$psgetv2ModuleBase = (get-command save-module).Module.ModuleBase
133+
$psgetv2Version = (get-command save-module).Module.Version.ToString()
134+
$psgetv2Prerelease = (get-command save-module).module.PrivateData.PSData.Prerelease
135+
Write-Verbose -Verbose -Message "PowerShellGet module base imported: $psgetv2ModuleBase"
136+
Write-Verbose -Verbose -Message "PowerShellGet version base imported: $psgetv2Version"
137+
Write-Verbose -Verbose -Message "PowerShellGet prerelease base imported: $psgetv2Prerelease"
138+
Save-Module -Name $config.ModuleName -Repository $localRepoName -Path $installationPath -Force -Verbose -AllowPrerelease -Confirm:$false
139+
Unregister-PSRepository -Name $localRepoName
124140

125141
Write-Verbose -Verbose -Message "Unregistering local package repo: $localRepoName"
126142
Unregister-PSResourceRepository -Name $localRepoName -Confirm:$false

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "8.0.403"
3+
"version": "8.0.404"
44
}
55
}

src/Microsoft.PowerShell.PSResourceGet.psd1

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'udres')
4747
PrivateData = @{
4848
PSData = @{
49-
Prerelease = 'RC1'
49+
# Prerelease = ''
5050
Tags = @('PackageManagement',
5151
'PSEdition_Desktop',
5252
'PSEdition_Core',
@@ -56,6 +56,34 @@
5656
ProjectUri = 'https://go.microsoft.com/fwlink/?LinkId=828955'
5757
LicenseUri = 'https://go.microsoft.com/fwlink/?LinkId=829061'
5858
ReleaseNotes = @'
59+
## 1.1.0
60+
61+
### Bug Fix
62+
- Bugfix for publishing .nupkg file to ContainerRegistry repository (#1763)
63+
- Bugfix for PMPs like Artifactory needing modified filter query parameter to proxy upstream (#1761)
64+
- Bugfix for ContainerRegistry repository to parse out dependencies from metadata (#1766)
65+
- Bugfix for Install-PSResource Null pointer occurring when package is present only in upstream feed in ADO (#1760)
66+
- Bugfix for local repository casing issue on Linux (#1750)
67+
- Update README.md (#1759)
68+
- Bug fix for case sensitive License.txt when RequireLicense is specified (#1757)
69+
- Bug fix for broken -Quiet parameter for Save-PSResource (#1745)
70+
71+
## 1.1.0-rc3
72+
73+
### Bug Fix
74+
- Include missing commits
75+
76+
## 1.1.0-RC2
77+
78+
### New Features
79+
- Full Microsoft Artifact Registry integration (#1741)
80+
81+
### Bug Fixes
82+
83+
- Update to use OCI v2 APIs for Container Registry (#1737)
84+
- Bug fixes for finding and installing from local repositories on Linux machines (#1738)
85+
- Bug fix for finding package name with 4 part version from local repositories (#1739)
86+
5987
## 1.1.0-RC1
6088
6189
### New Features

0 commit comments

Comments
 (0)