aboutsummaryrefslogtreecommitdiff
path: root/_content
diff options
context:
space:
mode:
authorPaschalis Tsilias <paschalistsilias@gmail.com>2021-11-10 00:59:37 +0200
committerBryan C. Mills <bcmills@google.com>2021-11-10 21:49:32 +0000
commit0d747a3693a86419beab65532c807160f83cbbef (patch)
treef8db4279345f870d742e3b657a71bcf75006db37 /_content
parent5743d7e57704d76103fb73f54fcb684c74b8a0e2 (diff)
downloadgo-x-website-0d747a3693a86419beab65532c807160f83cbbef.tar.xz
_content/ref/mod: document '-o' flag for go mod vendor
For golang/go#47327 Change-Id: I8f6a4da541be4d95aa8b420b0294a0c1e78b8a0b Reviewed-on: https://go-review.googlesource.com/c/website/+/362814 Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Than McIntosh <thanm@google.com>
Diffstat (limited to '_content')
-rw-r--r--_content/ref/mod.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index c3429a1f..491fb4d7 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -1955,7 +1955,7 @@ explicitly via the `-compat` flag.
Usage:
```
-go mod vendor [-e] [-v]
+go mod vendor [-e] [-v] [-o]
```
The `go mod vendor` command constructs a directory named `vendor` in the [main
@@ -1991,6 +1991,10 @@ despite errors encountered while loading packages.
The `-v` flag causes `go mod vendor` to print the names of vendored modules
and packages to standard error.
+The `-o` flag (added in Go 1.18) causes `go mod vendor` to output the vendor
+tree at the specified directory instead of `vendor`. The argument can be either
+an absolute path or a path relative to the module root.
+
### `go mod verify` {#go-mod-verify}
Usage: