Skip to content

Commit 02cc440

Browse files
Remove downloading 'Utility.psd1' and 'Management.psd1' from build (#811)
1 parent fe0d6d2 commit 02cc440

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

build.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ if (!$NoBuild.IsPresent) {
168168
Get-Item "$PSScriptRoot/src/Modules/PackageManagement/1.1.7.0/fullclr" -ErrorAction SilentlyContinue |
169169
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
170170

171-
# TODO: Remove this once the SDK properly bundles modules
172-
Get-WebFile -Url 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1' `
173-
-OutFile "$PSScriptRoot/src/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1"
174-
Get-WebFile -Url 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1' `
175-
-OutFile "$PSScriptRoot/src/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1"
176-
177171
dotnet publish -c $Configuration "/p:BuildNumber=$BuildNumber" $PSScriptRoot
178172

179173
if ($AddSBOM)

tools/helper.psm1

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -164,19 +164,6 @@ function Resolve-ProtoBufToolPath
164164
}
165165
}
166166

167-
function Get-WebFile {
168-
param (
169-
[string] $Url,
170-
[string] $OutFile
171-
)
172-
$directoryName = [System.IO.Path]::GetDirectoryName($OutFile)
173-
if (!(Test-Path $directoryName)) {
174-
New-Item -Type Directory $directoryName
175-
}
176-
Remove-Item $OutFile -ErrorAction SilentlyContinue
177-
Invoke-RestMethod $Url -OutFile $OutFile
178-
}
179-
180167
function Write-Log
181168
{
182169
param(

0 commit comments

Comments
 (0)