aboutsummaryrefslogtreecommitdiff
path: root/_content/ref/mod.md
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2023-03-12 11:05:11 +0800
committerGopher Robot <gobot@golang.org>2023-05-20 17:31:09 +0000
commitc3f7ee19dfc396001bb3c20b563a447e4eab51e1 (patch)
tree1afd85ae6072c070a58d09db97601e82883acc60 /_content/ref/mod.md
parent61f76368323bc93373ac67b7c759a353521fa642 (diff)
downloadgo-x-website-c3f7ee19dfc396001bb3c20b563a447e4eab51e1.tar.xz
_content/ref: note "go get" reject -mod flag
Fixes golang/go#44760 Change-Id: I09c7dcf4dc2b7185cfbbbab063d23bcdfbb1119d Reviewed-on: https://go-review.googlesource.com/c/website/+/475715 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to '_content/ref/mod.md')
-rw-r--r--_content/ref/mod.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index a745a00b..849bcfa4 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -1448,6 +1448,8 @@ commands accept the following flags, common to all module commands.
higher and a `vendor` directory is present, the `go` command acts as if
`-mod=vendor` were used. Otherwise, the `go` command acts as if
`-mod=readonly` were used.
+ * `go get` rejects this flag as the purpose of the command is to modify
+ dependencies, which is only allowed by `-mod=mod`.
* The `-modcacherw` flag instructs the `go` command to create new directories
in the module cache with read-write permissions instead of making them
read-only. When this flag is used consistently (typically by setting