mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-18 05:05:36 +00:00
Fix Bootstrap step in Windows daily test runs (#14820)
This commit is contained in:
1 parent
59e5d67457
commit
39509a93b9
1 file changed
+11
@@ -99,6 +99,17 @@ stages:
|
||||
|
||||
# must be run frow Windows PowerShell
|
||||
- powershell: |
|
||||
# Remove "Program Files\dotnet" from the env variable PATH, so old SDKs won't affect us.
|
||||
Write-Host "Old Path:"
|
||||
Write-Host $env:Path
|
||||
|
||||
$dotnetPath = Join-Path $env:SystemDrive 'Program Files\dotnet'
|
||||
$paths = $env:Path -split ";" | Where-Object { -not $_.StartsWith($dotnetPath) }
|
||||
$env:Path = $paths -join ";"
|
||||
|
||||
Write-Host "New Path:"
|
||||
Write-Host $env:Path
|
||||
|
||||
Import-Module .\tools\ci.psm1
|
||||
Invoke-CIInstall
|
||||
displayName: Bootstrap
|
||||
|
||||
Reference in new issue
Block a user