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: on Windows look for extensions in Run if not already done #67035
base: master
Are you sure you want to change the base?
Conversation
For avoid data race for cmd.Path , in CL 527820 fixed data race , but addition of suffixe as shown in golang#66586 was also introduced. The result of call lookExtensions is actually the name passed to os.StartProcess, But solutions at the time chose to reuse cmd.Path to represent the name passed to os.StartProcess,since this results in golang#66586, So use new field save call lookExtensions result. Fixes golang#66586 Change-Id: Ib1baa6d7803f9471af6e38bcb55f0298422e6743
This PR (HEAD: 78e0ae5) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/581695. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
This PR (HEAD: fd6c529) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/581695. Important tips:
|
Message from qiulaidongfeng: Patch Set 2: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-25T12:47:06Z","revision":"513c94fb4669854608794164d65687b1d6b0a07e"} Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 2: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results): FAILURE
Error: Links: Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 4: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-25T13:00:46Z","revision":"74f07c1f2dca4e87e05e2c846a5721c2efc0986b"} Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/gotip-windows-amd64 has failed with summary (view all results): FAILURE
Error: Links: Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
This PR (HEAD: be41db8) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/581695. Important tips:
|
Message from qiulaidongfeng: Patch Set 5: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 5: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-25T13:27:31Z","revision":"809075a3c45077dda6dc4d9fecc402dbec7fecff"} Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 5: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 5: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 5: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Ian Lance Taylor: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Ian Lance Taylor: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
This PR (HEAD: d9ffb2d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/581695. Important tips:
|
Message from qiulaidongfeng: Patch Set 6: Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-26T08:22:57Z","revision":"d21a94e2cfa4adb969a93ad9900d863e5a40e629"} Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Ian Lance Taylor: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Ian Lance Taylor: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
This PR (HEAD: 16f6808) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/581695. Important tips:
|
Message from qiulaidongfeng: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 8: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 8: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-28T02:20:19Z","revision":"b4971b50be6894a5b34f3a650c673c381abbcd78"} Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 8: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 8: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 8: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Ian Lance Taylor: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
This PR (HEAD: 119b230) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/581695. Important tips:
|
Message from qiulaidongfeng: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Ian Lance Taylor: Patch Set 9: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 11: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 11: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 11: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-29T10:29:49Z","revision":"8b1c3b29234e74cc9006d2236d4010016d5d35a2"} Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 11: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 11: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Go LUCI: Patch Set 11: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Russ Cox: Patch Set 11: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from Russ Cox: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
Message from qiulaidongfeng: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/581695. |
CL 512155 fixed #36768, but introduced #62596.
CL 527820 fixed #62596, but meant that the code failed to look up
file extensions on Windows for a relative path.
This CL fixes that problem by recording whether it has already
looked up file extensions.
This does mean that if Path is set manually then we do not update
it with file extensions, as doing that would be racy.
Fixes #66586