]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add a release note for 'go mod vendor -o'
authorBryan C. Mills <bcmills@google.com>
Wed, 10 Nov 2021 21:57:14 +0000 (16:57 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 11 Nov 2021 14:57:18 +0000 (14:57 +0000)
For #47327

Change-Id: I50418c0d017c4e90a2c13d26945ee639079e4e33
Reviewed-on: https://go-review.googlesource.com/c/go/+/363174
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Paschalis Tsilias <paschalistsilias@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index 44c56444fcd098fa5c911a2509245fffd6d95189..bec9ada383937efe31e16a49763fac5cfb8133cf 100644 (file)
@@ -114,6 +114,15 @@ Do not send CLs removing the interior tags from such phrases.
   <code>go</code> <code>mod</code> <code>download</code> <code>all</code>.
 </p>
 
+<p><!-- https://golang.org/issue/47327 -->
+  The <code>go</code> <code>mod</code> <code>vendor</code> subcommand now
+  supports a <code>-o</code> flag to set the output directory.
+  (Other <code>go</code> commands still read from the <code>vendor</code>
+  directory at the module root when loading packages
+  with <code>-mod=vendor</code>, so the main use for this flag is for
+  third-party tools that need to collect package source code.)
+</p>
+
 <p><!-- CL 349595 -->
   TODO: <a href="https://golang.org/cl/349595">https://golang.org/cl/349595</a>: cmd/go: add GOAMD64 environment variable
 </p>