From 60e16d2f1112e394e21a525d786d8661f9d620b4 Mon Sep 17 00:00:00 2001 From: Amber Erickson Date: Tue, 11 Dec 2018 17:32:18 -0800 Subject: [PATCH] Update module version --- CHANGELOG.md | 4 ++++ src/PowerShellGet/PowerShellGet.psd1 | 7 ++++++- tools/build.psm1 | 7 +------ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af7f8d50..48d6b1f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 2.0.4 +Bug Fix +* Remove PSGallery availability checks (#374) + ## 2.0.3 Bug fixes and Improvements * Fix CommandAlreadyAvailable error for PackageManagement module (#333) diff --git a/src/PowerShellGet/PowerShellGet.psd1 b/src/PowerShellGet/PowerShellGet.psd1 index bc9fc2c2..4c1d6139 100644 --- a/src/PowerShellGet/PowerShellGet.psd1 +++ b/src/PowerShellGet/PowerShellGet.psd1 @@ -1,6 +1,6 @@ @{ RootModule = 'PSModule.psm1' -ModuleVersion = '2.0.3' +ModuleVersion = '2.0.4' GUID = '1d73a601-4a6c-43c5-ba3f-619b18bbb404' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' @@ -54,6 +54,11 @@ PrivateData = @{ ProjectUri = 'https://go.microsoft.com/fwlink/?LinkId=828955' LicenseUri = 'https://go.microsoft.com/fwlink/?LinkId=829061' ReleaseNotes = @' +## 2.0.4 + +Bug Fix +* Remove PSGallery availability checks (#374) + ## 2.0.3 Bug fixes and Improvements diff --git a/tools/build.psm1 b/tools/build.psm1 index fbc13b79..60cd2610 100644 --- a/tools/build.psm1 +++ b/tools/build.psm1 @@ -103,9 +103,6 @@ function Install-PackageManagement { $FindModule_params = @{ Name = $OneGetModuleName - # Temporarily add RequiredVersion param until Package Management version greater than version 1.2.3 is released - # Due to minor bug in Package Management causing PSGet test failures - RequiredVersion = '1.2.2' } if ($PSVersionTable.PSVersion -eq '5.1.14394.1000') { # Adding -MaximumVersion 1.1.7.0 as AppVeyor VM with WMF 5 is not installed with latest root CA certificates @@ -122,9 +119,7 @@ function Install-PackageManagement { $null = Microsoft.PowerShell.Management\New-Item -Path $TempModulePath -Force -ItemType Directory $OneGetModuleName = 'PackageManagement' try { - # Temporarily add version flag until Package Management version greater than version 1.2.3 is released - # Due to minor bug in Package Management causing PSGet test failures - & $NugetExeFilePath install $OneGetModuleName -source https://www.powershellgallery.com/api/v2 -outputDirectory $TempModulePath -verbosity detailed -version 1.2.2 + & $NugetExeFilePath install $OneGetModuleName -source https://www.powershellgallery.com/api/v2 -outputDirectory $TempModulePath -verbosity detailed $OneGetWithVersion = Microsoft.PowerShell.Management\Get-ChildItem -Path $TempModulePath -Directory $OneGetVersion = ($OneGetWithVersion.Name.Split('.', 2))[1]