Skip to content

Commit c50c6f0

Browse files
Remove downloading 'Utility.psd1' and 'Management.psd1' from build (#811) (#816)
1 parent 1fb95c2 commit c50c6f0

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
@@ -173,19 +173,6 @@ function Resolve-ProtoBufToolPath
173173
}
174174
}
175175

176-
function Get-WebFile {
177-
param (
178-
[string] $Url,
179-
[string] $OutFile
180-
)
181-
$directoryName = [System.IO.Path]::GetDirectoryName($OutFile)
182-
if (!(Test-Path $directoryName)) {
183-
New-Item -Type Directory $directoryName
184-
}
185-
Remove-Item $OutFile -ErrorAction SilentlyContinue
186-
Invoke-RestMethod $Url -OutFile $OutFile
187-
}
188-
189176
function Write-Log
190177
{
191178
param(

0 commit comments

Comments
 (0)