]> Cypherpunks repositories - gostls13.git/commit
cmd/go: place GOROOT/bin at the beginning of PATH in 'go run'
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Thu, 27 Jun 2024 23:59:38 +0000 (23:59 +0000)
committerMichael Matloob <matloob@golang.org>
Wed, 9 Oct 2024 18:10:59 +0000 (18:10 +0000)
commit935bf1395c47088d3455722452b28f18084f1450
tree3b0c03e2b7bc5cc181a3e62be63cafd66d6dcb04
parent18131ec8dc0db3992509f08649ae34063f00823a
cmd/go: place GOROOT/bin at the beginning of PATH in 'go run'

This causes programs that use 'go' as a subprocess to use the same go
command as the parent 'go run' command.

Fixes #68005

Change-Id: I937cef474bf038a925bb74fc73e5f377b03e27b7
GitHub-Last-Rev: 9986537cadb0921763cc1496a63e3806b4aac1ac
GitHub-Pull-Request: golang/go#68040
Reviewed-on: https://go-review.googlesource.com/c/go/+/593255
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/base/base.go
src/cmd/go/testdata/script/run_goroot_PATH.txt [new file with mode: 0644]