1
0
mirror of https://github.com/golang/go synced 2024-11-17 06:04:47 -07:00
go/misc
Bryan C. Mills 9bc544a158 misc/cgo: invoke "go" from $GOROOT/bin instead of $PATH
If PATH doesn't contain GOROOT/bin as the first element, this could
otherwise end up running entirely the wrong command (and from the
wrong GOROOT, even).

I pre-tested this change on release-branch.go1.17 using a gomote.
I believe that it will fix the test failure on that branch,
but will need to be backported.

For #52995.

Change-Id: Ib0c43289a1e0ccf9409f0f0ef8046501a955ce65
Reviewed-on: https://go-review.googlesource.com/c/go/+/407294
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-05-19 15:04:11 +00:00
..
android
arm
cgo misc/cgo: invoke "go" from $GOROOT/bin instead of $PATH 2022-05-19 15:04:11 +00:00
chrome/gophertool
ios all: gofmt main repo 2022-04-11 16:34:30 +00:00
linkcheck
reboot misc/reboot: don't use symlinks when copying GOROOT/src 2022-02-08 15:30:12 +00:00
swig
wasm
editors
go.mod