From 9c8cdb50f6c5e4d720c3d1e77820b3c9596ebf2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 21 May 2019 17:36:17 -0700 Subject: [PATCH] Build(deps): Bump PackageManagement from 1.3.2 to 1.4 in /src/Modules (#9650) * Build(deps): Bump PackageManagement from 1.3.2 to 1.4 in /src/Modules Bumps PackageManagement from 1.3.2 to 1.4. Signed-off-by: dependabot[bot] --- build.psm1 | 5 ++++- src/Modules/PSGalleryModules.csproj | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.psm1 b/build.psm1 index 3f66cc3020..c3f11cd371 100644 --- a/build.psm1 +++ b/build.psm1 @@ -2250,6 +2250,9 @@ function Copy-PSGalleryModules # Remove the build revision from the src (nuget drops it). $srcVer = if ($version -match "(\d+.\d+.\d+).0") { $matches[1] + } elseif ($version -match "^\d+.\d+$") { + # Two digit versions are stored as three digit versions + "$version.0" } else { $version } @@ -2262,7 +2265,7 @@ function Copy-PSGalleryModules New-Item -Path $dest -ItemType Directory -Force -ErrorAction Stop > $null # Exclude files/folders that are not needed. The fullclr folder is coming from the PackageManagement module $dontCopy = '*.nupkg', '*.nupkg.metadata', '*.nupkg.sha512', '*.nuspec', 'System.Runtime.InteropServices.RuntimeInformation.dll', 'fullclr' - Copy-Item -Exclude $dontCopy -Recurse $src/* $dest + Copy-Item -Exclude $dontCopy -Recurse $src/* $dest -ErrorAction Stop } } diff --git a/src/Modules/PSGalleryModules.csproj b/src/Modules/PSGalleryModules.csproj index 680721738c..8ce0d39f0e 100644 --- a/src/Modules/PSGalleryModules.csproj +++ b/src/Modules/PSGalleryModules.csproj @@ -4,7 +4,7 @@ - +