mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
pin PowerShellGet to 1.6.0 to maintain the ability to patch
This commit is contained in:
+3
-5
@@ -652,11 +652,9 @@ function Restore-PSModuleToBuild
|
||||
$modulesDir = Join-Path -Path $publishPath -ChildPath "Modules"
|
||||
|
||||
# Restore modules from powershellgallery feed
|
||||
Restore-PSModule -Destination $modulesDir -Name @(
|
||||
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
|
||||
'PowerShellGet'
|
||||
'Microsoft.PowerShell.Archive'
|
||||
) -SourceLocation "https://www.powershellgallery.com/api/v2/"
|
||||
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
|
||||
Restore-PSModule -Destination $modulesDir -Name 'PowerShellGet' -RequiredVersion '1.6.0' -SourceLocation "https://www.powershellgallery.com/api/v2/"
|
||||
Restore-PSModule -Destination $modulesDir -Name 'Microsoft.PowerShell.Archive' -SourceLocation "https://www.powershellgallery.com/api/v2/"
|
||||
|
||||
if($CI.IsPresent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user