cmd/go: print default GOBIN when running "go env GOBIN" if not set #34522
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
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: