-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: print default GOBIN when running "go env GOBIN" if not set #34522
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
Comments
@gopherbot, please add label GoCommand |
There's also |
Also note that some env vars like |
|
Duplicate of #23439 |
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?
Run
go env GOBIN
What did you expect to see?
The current evaluated path to GOBIN.
It has bitten me a few times where I install tools with
go install
and then want to run them, without relying on having GOBIN in my path. I can't really see any reason whygo env GOBIN
shouldn't return the current one.Also see @rsc comment in #23439 (comment)
What did you see instead?
An empty line.
The text was updated successfully, but these errors were encountered: