Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
save modules to un-versioned folder to enable servicing
  • Loading branch information
SteveL-MSFT committed Aug 13, 2018
commit 5939b2bd5fe6af8ced8d70e2f4d37cabef6b642e
9 changes: 1 addition & 8 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2460,16 +2460,9 @@ function Copy-PSGalleryModules
$version
}

# Remove semantic version in the destination directory
$destVer = if ($version -match "(\d+.\d+.\d+)-.+") {
$matches[1]
} else {
$version
}

# Nuget seems to always use lowercase in the cache
$src = "$nugetCache/$($name.ToLower())/$srcVer"
$dest = "$Destination/$name/$destVer"
$dest = "$Destination/$name"

Remove-Item -Force -ErrorAction Ignore -Recurse "$Destination/$name"
New-Item -Path $dest -ItemType Directory -Force -ErrorAction Stop > $null
Expand Down