You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into this before as well. Recursive calls to "go build" from tests use the go from your path, not the go that was used to run "go test". There are two workarounds: use all.bash, or set up GOROOT/PATH with the directory you're running in.
I don't see any obvious fix. All these tests call testenv.MustHaveGoBuild(t) or variants, maybe we could have them return the right path to use?
// GoToolPath reports the path to the Go tool.// If the tool is unavailable GoToolPath calls t.Skip.// If the tool should be available and isn't, GoToolPath calls t.Fatal.funcGoToolPath(t*testing.T) string {
MustHaveGoBuild(t)
Please answer these questions before submitting your issue. Thanks!
go version
)?go 1.7rc4
$ cd go/
$ ./src/make.bash
$ ./bin/go test -short runtime
Tests run with ./bin/go
Tests run with the first "go" in $PATH (in this case, the "go" on $PATH was broken, so the tests failed.)
The text was updated successfully, but these errors were encountered: