-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: "go env" returns default value for GOPATH/GOSUMDB/GOPROXY, but not for GOBIN/GO111MODULE/GOTMPDIR #42823
Comments
partially a duplicate of #23439. |
Closing as a duplicate of #23439. For For
|
It is true that an empty string is a valid
Any harmfulness to make a consistency here? |
My interpretation of the issue was this was mainly about |
so should we simply print |
@howjmay It's more complicated than that:
|
What version of Go are you using (
go version
)?What did you do?
None of these envs are set specifically.
What did you expect to see?
I expect
go env GOBIN
to be evaluated as<gopath>/bin
in a shell script.What did you see instead?
go env GOBIN
is evaluated as blank.The text was updated successfully, but these errors were encountered: