-
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' should set GOBIN #68102
Comments
Duplicate of #34522, #28337, #50714. See @rsc comment: #23439 (comment) |
Apparently the blocking issue is #23439, so I'm closing. |
Reopening because #23439 seems to be settled if we look at the documentation. $ go help install | head -9
usage: go install [build flags] [packages]
Install compiles and installs the packages named by the import paths.
Executables are installed in the directory named by the GOBIN environment
variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH
environment variable is not set. Executables in $GOROOT
are installed in $GOROOT/bin or $GOTOOLDIR instead of $GOBIN. |
I don't think we need a separate issue, this can be done as #23439 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go env GOBIN
would be helpful to tools beyond the Go toolchain to determine wherego install
will install a binary.However, up to go 1.22.4, the
go install
directory is not explicitely exposed likeGOPATH
is. InsteadGOBIN
is exposed with an empty value.Go version
go version go1.22.4 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
See above
What did you expect to see?
The text was updated successfully, but these errors were encountered: