-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PowerShell Script Issues #76219
Fix PowerShell Script Issues #76219
Conversation
Ran into issues running PowerShell script issues tonight looking at determinism. After digging down discovered that our scripts didn't run correctly when launching the .cmd files from a pwsh shell. Changed our cmd to avoid this problem. PowerShell/PowerShell#24630
@dotnet/roslyn-infrastructure PTAL |
@@ -286,8 +287,8 @@ try { | |||
|
|||
if ($bootstrapDir -eq "") { | |||
Write-Host "Building bootstrap compiler" | |||
$bootstrapDir = Join-Path $ArtifactsDir "bootstrap" "determinism" | |||
& eng/make-bootstrap.ps1 -output $bootstrapDir -ci:$ci | |||
$bootstrapDir = Join-Path $ArtifactsDir (Join-Path "bootstrap" "determinism") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation/impact of splitting this into multiple calls here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Join-Path
in powershell does not accept arbitrary numbers of arguments, only two. In pwsh it accepts arbitrary.
This went overlooked because this code path doesn't execute in CI as we manually build a bootstrap compiler. It only comes into play when working locally.
Ran into issues running PowerShell script issues tonight looking at determinism. After digging down discovered that our scripts didn't run correctly when launching the .cmd files from a pwsh shell. Changed our cmd to avoid this problem.
PowerShell/PowerShell#24630