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
The go command seems to be missing a way to ask where programs are being installed. I'd like to propose that go env GOBIN should return the location where go install would install programs even when GOBIN hasn't been overridden.
In short, go env GOBIN would never return an empty string.
In investigating how this could be implemented, I was reminded that there is code in cmd/go that takes into account multi-part GOPATH values when figuring out where to install binaries. At first glance, I think we'd want to have go env GOBIN use the same logic.
The text was updated successfully, but these errors were encountered:
The
go
command seems to be missing a way to ask where programs are being installed. I'd like to propose thatgo env GOBIN
should return the location wherego install
would install programs even whenGOBIN
hasn't been overridden.Current behavior
Proposed behavior
In short,
go env GOBIN
would never return an empty string.In investigating how this could be implemented, I was reminded that there is code in
cmd/go
that takes into account multi-partGOPATH
values when figuring out where to install binaries. At first glance, I think we'd want to havego env GOBIN
use the same logic.The text was updated successfully, but these errors were encountered: