-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
os/exec: LookPath inconsistency on windows/arm64 #44379
Comments
Change https://golang.org/cl/293709 mentions this issue: |
What makes you so certain this is arm64 only? Have you tried updating to the latest insider ring on amd64? |
@jstarks says it repros on x64 as well. Will update the CL. |
I can confirm that this is broken on x64 as well. We (Microsoft) are looking into it. |
We've confirmed that this is an OS bug in prerelease versions of Windows. We'll fix this in an upcoming preview build. Thanks for the report, Russ. |
For #44379. Change-Id: I9a3cf4d511a8286117f877c2ff9dbde56fa55983 Reviewed-on: https://go-review.googlesource.com/c/go/+/293709 Reviewed-by: Cherry Zhang <cherryyz@google.com> Trust: Russ Cox <rsc@golang.org>
@jstarks Thank you for fixing the bug and the update here. @rsc Is there anything that needs to be done for Go 1.17 on Go's side, or is the fix in the OS sufficient? This issue can be updated to re-enable the failing LookPathTest that was skipped in CL 293709 (and possibly move it out of Go 1.17 milestone if it isn't expected to happen before the release). |
I would think that trying to provide workarounds for prerelease OS builds is not going to be very productive. Microsoft is pretty good generally about trying not to break things in major releases, and users of prerelease accept that some things might not work very well. 21301 is quite old at this point too (though I'm not sure in which version it was fixed). |
Change https://golang.org/cl/341455 mentions this issue: |
After a recent Windows 10 update on my Surface Pro X, os/exec TestLookPath is failing.
It appears to be a bug introduced in the update in cmd.exe itself.
The transcript below seems to show that cmd.exe is not respecting the order of extensions in PATHEXT:
even though EXE comes before BAT, cmd is prefering a.bat over a.exe.
Edit: I am running Windows 10 Home Insider Preview, Build 21301.rs_prerelease.210123-1645, on a Surface Pro X.
The text was updated successfully, but these errors were encountered: