-
Notifications
You must be signed in to change notification settings - Fork 18k
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
dl/internal/version: add $GOROOT/bin to $PATH when running go run/generate #28103
Labels
Milestone
Comments
Change https://golang.org/cl/142887 mentions this issue: |
New CL isn't being linked for some reason, see: https://golang.org/cl/143545 |
Change https://golang.org/cl/143545 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Tools run by go run/generate sometimes need to execute the go command, for example when using
go/packages
.Adding $GOROOT/bin to $PATH ensures that the appropriate version of the go/gofmt commands are run when using a go command wrapper generated by x/build/version.
edit: and
test
. Anything that runs go code could exec the go tool.See #28043 for background and discussion, specifically #28043 (comment).
cc @bcmills
The text was updated successfully, but these errors were encountered: