]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add link to env varible guide to set custom GOPATH
authorJaana Burcu Dogan <jbd@google.com>
Fri, 6 Jan 2017 23:09:10 +0000 (15:09 -0800)
committerJaana Burcu Dogan <jbd@google.com>
Sat, 7 Jan 2017 00:53:18 +0000 (00:53 +0000)
Also moves the GOPATH env variable guide to
golang.org/wiki/SettingGOPATH.

Fixes #18294.

Change-Id: I88a2ce550df7466f8d2388d86bc8476dcf3c2ad6
Reviewed-on: https://go-review.googlesource.com/34918
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/code.html
src/cmd/go/alldocs.go
src/cmd/go/help.go

index 703f38a21a3305fad903bbb3fec1aa3e93bfb19a..796431aa1445df252ec3725fd1b36155cd84ec8f 100644 (file)
@@ -166,7 +166,7 @@ To learn more about the <code>GOPATH</code> environment variable, see
 
 <p>
 To use a custom workspace location,
-<a href="https://golang.org/wiki/EnvVariables#gopath">set the <code>GOPATH</code> environment variable</a>.
+<a href="https://golang.org/wiki/SettingGOPATH">set the <code>GOPATH</code> environment variable</a>.
 </p>
 
 <h3 id="ImportPaths">Import paths</h3>
index 57716a53f8364e7cc25175d3646795750d967246..e93fd6ebed7775157cdfd0c143d43cac6759fa2b 100644 (file)
 // unless that directory holds a Go distribution.
 // Run "go env GOPATH" to see the current GOPATH.
 //
+// See https://golang.org/wiki/SettingGOPATH to set a custom GOPATH.
+//
 // Each directory listed in GOPATH must have a prescribed structure:
 //
 // The src directory holds source code.  The path below src
index fb69d8ec543c786e23279708edd9b6f93cfb4a29..0c663ad463f679302a8280c85f8e32fad32844b7 100644 (file)
@@ -295,6 +295,8 @@ to a subdirectory named "go" in the user's home directory
 unless that directory holds a Go distribution.
 Run "go env GOPATH" to see the current GOPATH.
 
+See https://golang.org/wiki/SettingGOPATH to set a custom GOPATH.
+
 Each directory listed in GOPATH must have a prescribed structure:
 
 The src directory holds source code.  The path below src