Skip to content

Commit

Permalink
help: add doc for GO111MODULE.
Browse files Browse the repository at this point in the history
  • Loading branch information
imxyb committed Dec 30, 2020
1 parent 780b4de commit 0679039
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cmd/go/internal/help/helpdoc.go
Expand Up @@ -535,6 +535,14 @@ General-purpose environment variables:
GOTMPDIR
The directory where the go command will write
temporary source files, packages, and binaries.
GO111MODULE
which can be set to one of three string values: off, on, or auto (the default).
If GO111MODULE=on, then the go command requires the use of modules, never consulting GOPATH.
We refer to this as the command being module-aware or running in "module-aware mode".
If GO111MODULE=off, then the go command never uses module support.
Instead it looks in vendor directories and GOPATH to find dependencies; we now refer to this as "GOPATH mode."
If GO111MODULE=auto or is unset, then the go command enables or disables
module support based on the current directory.
Environment variables for use with cgo:
Expand Down

0 comments on commit 0679039

Please sign in to comment.