]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add 'go mod vendor -o' flag
authorPaschalis Tsilias <paschalis.tsilias@gmail.com>
Wed, 28 Jul 2021 14:03:21 +0000 (17:03 +0300)
committerBryan C. Mills <bcmills@google.com>
Wed, 10 Nov 2021 21:32:50 +0000 (21:32 +0000)
commitf410786c5f12d0cc4f44ce9daf8d0883df39a2f6
tree419749d5287c13eead82646403ee4fcee954fd89
parenta881409960a2a8117c99dcc0c91ab74885a3c53a
cmd/go: add 'go mod vendor -o' flag

Adds a new flag to 'go mod vendor' which overrides the default
'vendor' destination directory. This can be helpful for writing the
vendor tree to a temporary location for use by other tools.
The argument can be a relative or an absolute path.
This flag has no other influence on how the command behaves.

Fixes #47327

Change-Id: I4502931127616b181dc90a2066d2fb57bfe48f96
Reviewed-on: https://go-review.googlesource.com/c/go/+/338149
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/vendor.go
src/cmd/go/testdata/script/mod_vendor.txt