summaryrefslogtreecommitdiff
path: root/doc/install-source.html
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-03-12 16:49:12 -0400
committerRuss Cox <rsc@golang.org>2012-03-12 16:49:12 -0400
commit27011387ab8ede48b7d4e7d4070c21df5d2c546d (patch)
tree8402868b1110b29b5ebbf4b228262c36d51d1f4d /doc/install-source.html
parentb511745dd566ada894849cea6db71e40861ac82c (diff)
downloadgo-27011387ab8ede48b7d4e7d4070c21df5d2c546d.tar.gz
cmd/go: respect $GOBIN always
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. Fixes issue 3269. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5754088
Diffstat (limited to 'doc/install-source.html')
-rw-r--r--doc/install-source.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/install-source.html b/doc/install-source.html
index 82ff8e740..4673850f4 100644
--- a/doc/install-source.html
+++ b/doc/install-source.html
@@ -393,11 +393,12 @@ For example, you should not set <code>$GOHOSTARCH</code> to
<p><code>$GOBIN</code>
<p>
-The location where binaries from the main repository will be installed.
-XXX THIS MAY CHANGE TO BE AN OVERRIDE EVEN FOR GOPATH ENTRIES XXX
+The location where Go binaries will be installed.
The default is <code>$GOROOT/bin</code>.
After installing, you will want to arrange to add this
directory to your <code>$PATH</code>, so you can use the tools.
+If <code>$GOBIN</code> is set, the <a href="/cmd/go">go command</a>
+installs all commands there.
</p>
<p><code>$GOARM</code> (arm, default=6)</p>