Commit 398f9e1e authored by Agniva De Sarker's avatar Agniva De Sarker Committed by Agniva De Sarker

cmd/go: document the -mod=mod option

Updates #33848

Change-Id: I505490906be7cd6fbcdc6a05c1017c779dbf7bba
Reviewed-on: https://go-review.googlesource.com/c/go/+/207397
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
parent 3bea90d8
......@@ -148,7 +148,7 @@
// build code that will be linked against shared libraries previously
// created with -buildmode=shared.
// -mod mode
// module download mode to use: readonly or vendor.
// module download mode to use: readonly, vendor, or mod.
// See 'go help modules' for more.
// -modcacherw
// leave newly-created directories in the module cache read-write
......@@ -2495,6 +2495,9 @@
// directory holds the correct copies of dependencies and ignores
// the dependency descriptions in go.mod.
//
// If invoked with -mod=mod, the go command loads modules from the module cache
// even if there is a vendor directory present.
//
// Pseudo-versions
//
// The go.mod file and the go command more generally use semantic versions as
......
......@@ -179,6 +179,9 @@ If invoked with -mod=vendor, the go command assumes that the vendor
directory holds the correct copies of dependencies and ignores
the dependency descriptions in go.mod.
If invoked with -mod=mod, the go command loads modules from the module cache
even if there is a vendor directory present.
Pseudo-versions
The go.mod file and the go command more generally use semantic versions as
......
......@@ -100,7 +100,7 @@ and test commands:
build code that will be linked against shared libraries previously
created with -buildmode=shared.
-mod mode
module download mode to use: readonly or vendor.
module download mode to use: readonly, vendor, or mod.
See 'go help modules' for more.
-modcacherw
leave newly-created directories in the module cache read-write
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment