pin PackageManagement to 1.1.7.0 to maintain the ability to patch

This commit is contained in:
Travis Plunk
2018-07-05 12:32:54 -07:00
parent b9c5915d47
commit 19118e0532
+2 -1
View File
@@ -652,7 +652,8 @@ function Restore-PSModuleToBuild
$modulesDir = Join-Path -Path $publishPath -ChildPath "Modules"
# Restore modules from powershellgallery feed
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
# PowerShellGet depends on PackageManagement module, so we will install PackageManagement module first.
Restore-PSModule -Destination $modulesDir -Name 'PackageManagement' -RequiredVersion '1.1.7.0' -SourceLocation "https://www.powershellgallery.com/api/v2/"
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/"