]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: document GOTOOLDIR environment variable
authorAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 11 Apr 2018 08:50:09 +0000 (10:50 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 11 Apr 2018 13:36:22 +0000 (13:36 +0000)
Also, make the variables list sorted.

Fixes #24794

Change-Id: I55f77004b00391875d26df8e55e54d79cef168dc
Reviewed-on: https://go-review.googlesource.com/106255
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index d78a08821e4ba7872e3f6a6aa826a3191b969beb..8cceb7d231e6511f130f8e4d8016ccca3f042cc8 100644 (file)
 //             Examples are amd64, 386, arm, ppc64.
 //     GOBIN
 //             The directory where 'go install' will install a command.
+//     GOCACHE
+//             The directory where the go command will store cached
+//             information for reuse in future builds.
 //     GOOS
 //             The operating system for which to compile code.
 //             Examples are linux, darwin, windows, netbsd.
 //     GOTMPDIR
 //             The directory where the go command will write
 //             temporary source files, packages, and binaries.
-//     GOCACHE
-//             The directory where the go command will store
-//             cached information for reuse in future builds.
+//     GOTOOLDIR
+//             The directory where the go tools (compile, cover, doc, etc...)
+//             are installed. This is printed by go env, but setting the
+//             environment variable has no effect.
 //
 // Environment variables for use with cgo:
 //
index c39af796049fe77712eba02afdde3ff93c2dc074..f7ec839f02f93c301fb8583185e05d94f4383d42 100644 (file)
@@ -461,6 +461,9 @@ General-purpose environment variables:
                Examples are amd64, 386, arm, ppc64.
        GOBIN
                The directory where 'go install' will install a command.
+       GOCACHE
+               The directory where the go command will store cached
+               information for reuse in future builds.
        GOOS
                The operating system for which to compile code.
                Examples are linux, darwin, windows, netbsd.
@@ -474,9 +477,10 @@ General-purpose environment variables:
        GOTMPDIR
                The directory where the go command will write
                temporary source files, packages, and binaries.
-       GOCACHE
-               The directory where the go command will store
-               cached information for reuse in future builds.
+       GOTOOLDIR
+               The directory where the go tools (compile, cover, doc, etc...)
+               are installed. This is printed by go env, but setting the
+               environment variable has no effect.
 
 Environment variables for use with cgo: