]> Cypherpunks repositories - gostls13.git/commit
cmd/go: explicitly reject 'list -u' and 'list -versions' when '-mod=vendor' is set
authorBryan C. Mills <bcmills@google.com>
Thu, 9 Jan 2020 16:19:16 +0000 (11:19 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 9 Jan 2020 17:52:45 +0000 (17:52 +0000)
commit509592d188f6a30bb65b27a24f4c6f68716ea063
tree8352f02868dcb59757218f6b3310a4540a132bb0
parentcec535b7b747cee83b5ab285887f3fd2dcebdc1b
cmd/go: explicitly reject 'list -u' and 'list -versions' when '-mod=vendor' is set

The information requested by these flags is not available from the
vendor directory.

Noticed while diagnosing #36478.

Updates #33848

Change-Id: I2b181ba5c27f01fdd6277d8d0ab1003c05774ff7
Reviewed-on: https://go-review.googlesource.com/c/go/+/214081
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/list/list.go
src/cmd/go/testdata/script/mod_vendor.txt