Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit bcdaef7

Browse files
committed
Temporarily afix PackageManagement to v1.2.2 when installing dependencies (#375)
1 parent 4f05c7f commit bcdaef7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/build.psm1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ function Install-PackageManagement {
103103

104104
$FindModule_params = @{
105105
Name = $OneGetModuleName
106+
# Temporarily add RequiredVersion param until Package Management version greater than version 1.2.3 is released
107+
# Due to minor bug in Package Management causing PSGet test failures
108+
RequiredVersion = '1.2.2'
106109
}
107110
if ($PSVersionTable.PSVersion -eq '5.1.14394.1000') {
108111
# Adding -MaximumVersion 1.1.7.0 as AppVeyor VM with WMF 5 is not installed with latest root CA certificates
@@ -119,7 +122,9 @@ function Install-PackageManagement {
119122
$null = Microsoft.PowerShell.Management\New-Item -Path $TempModulePath -Force -ItemType Directory
120123
$OneGetModuleName = 'PackageManagement'
121124
try {
122-
& $NugetExeFilePath install $OneGetModuleName -source https://www.powershellgallery.com/api/v2 -outputDirectory $TempModulePath -verbosity detailed
125+
# Temporarily add version flag until Package Management version greater than version 1.2.3 is released
126+
# Due to minor bug in Package Management causing PSGet test failures
127+
& $NugetExeFilePath install $OneGetModuleName -source https://www.powershellgallery.com/api/v2 -outputDirectory $TempModulePath -verbosity detailed -version 1.2.2
123128
$OneGetWithVersion = Microsoft.PowerShell.Management\Get-ChildItem -Path $TempModulePath -Directory
124129
$OneGetVersion = ($OneGetWithVersion.Name.Split('.', 2))[1]
125130

0 commit comments

Comments
 (0)