This repository was archived by the owner on Jun 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ function Install-PackageManagement {
103
103
104
104
$FindModule_params = @ {
105
105
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'
106
109
}
107
110
if ($PSVersionTable.PSVersion -eq ' 5.1.14394.1000' ) {
108
111
# 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 {
119
122
$null = Microsoft.PowerShell.Management\New-Item - Path $TempModulePath - Force - ItemType Directory
120
123
$OneGetModuleName = ' PackageManagement'
121
124
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
123
128
$OneGetWithVersion = Microsoft.PowerShell.Management\Get-ChildItem - Path $TempModulePath - Directory
124
129
$OneGetVersion = ($OneGetWithVersion.Name.Split (' .' , 2 ))[1 ]
125
130
You can’t perform that action at this time.
0 commit comments