File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,14 @@ General-purpose environment variables:
535
535
GOTMPDIR
536
536
The directory where the go command will write
537
537
temporary source files, packages, and binaries.
538
+ GO111MODULE
539
+ which can be set to one of three string values: off, on, or auto (the default).
540
+ If GO111MODULE=on, then the go command requires the use of modules, never consulting GOPATH.
541
+ We refer to this as the command being module-aware or running in "module-aware mode".
542
+ If GO111MODULE=off, then the go command never uses module support.
543
+ Instead it looks in vendor directories and GOPATH to find dependencies; we now refer to this as "GOPATH mode."
544
+ If GO111MODULE=auto or is unset, then the go command enables or disables
545
+ module support based on the current directory.
538
546
539
547
Environment variables for use with cgo:
540
548
You can’t perform that action at this time.
0 commit comments