]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modcmd: skip files with the "ignore" constraint in 'go mod vendor'
authorBryan C. Mills <bcmills@google.com>
Tue, 2 Apr 2019 18:58:31 +0000 (14:58 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 19 Apr 2019 15:36:02 +0000 (15:36 +0000)
commit7f1612652b24fbb7f5a361735f656784f2d48cb1
tree9418543443fb09aa294416dc96736a284141b9ae
parentbdd7bb5526d5ba6a3471ce03ae953bb6d793b501
cmd/go/internal/modcmd: skip files with the "ignore" constraint in 'go mod vendor'

'go mod vendor' already drops test files and testdata directories, so
users should not expect the vendored module to include unnecessary
files in general.

Files tagged "ignore" are typically only used to refresh or regenerate
source files within the module to be vendored, so users of that module
do not need them.

Fixes #31088

Change-Id: I1ce9545e9b37c8e779a1826a9d494ac29d2cbfb8
Reviewed-on: https://go-review.googlesource.com/c/go/+/172978
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/modcmd/vendor.go
src/cmd/go/testdata/script/mod_vendor.txt