cmd/go: error for unset $GOPATH when GOROOT is $HOME/go is unhelpful #34628
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Unset GOPATH and have the go source tree located at $HOME/go.
Then run the go tool to do something, e.g.
go env
.What did you expect to see?
An informative error message.
What did you see instead?
"missing $GOPATH"
Additional information
See https://groups.google.com/d/topic/golang-nuts/D7wk6Mb6bZI/discussion
Note that while this is superficially similar to #29341, the fix at https://golang.org/cl/158257 will not fix this.
The text was updated successfully, but these errors were encountered: