-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Description
https://go.dev/cl/527337 reverted a change in os/exec due to a data race between the Start method and anything that inspects the Path field of the Cmd, notably including its String method.
https://go.dev/cl/527495 attempts to add a regression test for that data race, but currently fails on Windows because the data race is still present there.
The race appears to have been introduced in https://go.dev/cl/83020043, which added logic to update the Path field to reflect the resolved extension of the requested path. However, some of the regression tests added in that change are already failing in some circumstances (#62594).
In light of those failing tests, I believe we should resolve the race by no longer updating the Path field.
(CC @golang/windows, @ianlancetaylor)