]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.12: change go install to go get
authorAndrew <andybons@golang.org>
Mon, 25 Feb 2019 19:13:57 +0000 (19:13 +0000)
committerAndrew Bonventre <andybons@golang.org>
Mon, 25 Feb 2019 19:23:15 +0000 (19:23 +0000)
Using go get prevents the failure case of when the
user doesn't have the repo on their machine.

Change-Id: I9c1174087728b5b06b578b0d52df6eeb7e8c7a3c
Reviewed-on: https://go-review.googlesource.com/c/163718
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.12.html

index 1b937fdd79592d4fb594b7e168759bc35f6d8783..0c6463a04d7a1c774ce14af3393c1118472ebda0 100644 (file)
@@ -109,7 +109,7 @@ Do not send CLs removing the interior tags from such phrases.
   is no longer available with <code>go vet</code>. Checking for
   variable shadowing may now be done using
 <pre>
-go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
+go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
 go vet -vettool=$(which shadow)
 </pre>
 </p>
@@ -121,7 +121,7 @@ The Go tour is no longer included in the main binary distribution. To
 run the tour locally, instead of running <code>go</code> <code>tool</code> <code>tour</code>,
 manually install it:
 <pre>
-go install golang.org/x/tour
+go get -u golang.org/x/tour
 tour
 </pre>
 </p>