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: installs cmd/... in $GOBIN now #32674
Comments
Change https://golang.org/cl/183058 mentions this issue: |
Change https://golang.org/cl/215478 mentions this issue: |
Updates #14340 Updates #32674 Fixes #36659 Change-Id: I5bfaba4e53dab894d113dd5065794d66f1a25f2b Reviewed-on: https://go-review.googlesource.com/c/go/+/215478 Reviewed-by: Bryan C. Mills <bcmills@google.com>
Change https://golang.org/cl/223744 mentions this issue: |
Change https://golang.org/cl/223741 mentions this issue: |
https://golang.org/doc/contribute.html#quick_test currently suggests running 'make.bash' and 'run.bash' separately, but 'run.bash' potentially uses a 'go' command resolved from the wrong GOROOT, which in turn sets the wrong GOROOT for further commands. Updates #32674 Updates #17896 Change-Id: I4925d478d0fc7351c4f6d40830ab17d4d688348d Reviewed-on: https://go-review.googlesource.com/c/go/+/223741 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Katie Hockman <katie@golang.org>
I've been setting
GOBIN
manually for a while now. I also rungo install cmd/go
somewhat regularly, to test changes I make to the tool.Recently, I started noticing a
$GOBIN/go
binary, which makes no sense to me. I always thought thatgo install cmd
would populate$GOROOT/bin
, not$GOBIN
. The recent changes in 530097f seem to agree with me:Below is how I reproduced this on my system, which is running a somewhat recent master version. I verified that this regression doesn't show in 1.12.6 by building that tag from source and testing again.
I don't have the time to bisect now, but I can do that later this week if that's necessary. One perhaps important piece of information is that this problem disappears if I stop exporting
$GOBIN
; perhaps the bug is thatgo install
isn't properly ignoring an explicitly set$GOBIN
when installingcmd
.The fact that
make.bash
unsets the variable seems to back up this theory. However, that's #14340, which seems related but not the same issue./cc @bcmills @jayconrod
The text was updated successfully, but these errors were encountered: