]> Cypherpunks repositories - gostls13.git/commit
cmd/go: respect $GOBIN always
authorRuss Cox <rsc@golang.org>
Tue, 27 Mar 2012 15:57:39 +0000 (11:57 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 27 Mar 2012 15:57:39 +0000 (11:57 -0400)
commit9d7076b178e3b688a8421a8ce02466a3701d31a0
tree7319165ddb1e8d2a36073ecabbd0ef1753d2faf9
parent671862747ef238f1713170f712e85d1cd6d46685
cmd/go: respect $GOBIN always

Another attempt at https://golang.org/cl/5754088.

Before, we only consulted $GOBIN for source code
found in $GOROOT, but that's confusing to explain
and less useful.  The new behavior lets users set
GOBIN=$HOME/bin and have all go-compiled binaries
installed there.

Tested a few cases in test.bash.

Ran all.bash with and without $GOBIN and it works.
Even so, I expect it to break the builders,
like it did last time, we can debug from there.

Fixes #3269 (again).
Fixes #3396.
Fixes #3397.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5927051
doc/install-source.html
src/cmd/go/build.go
src/cmd/go/doc.go
src/cmd/go/help.go
src/cmd/go/pkg.go
src/cmd/go/test.bash
src/cmd/go/testdata/src/go-cmd-test/helloworld.go [new file with mode: 0644]