]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add a source file in the multiple-paths module in TestScript/mod_tidy_replace
authorBryan C. Mills <bcmills@google.com>
Fri, 16 Apr 2021 21:06:02 +0000 (17:06 -0400)
committerBryan C. Mills <bcmills@google.com>
Thu, 22 Apr 2021 18:05:13 +0000 (18:05 +0000)
commit9c1b769d5fdd419bbaf416bc51981f0ba2af0831
tree604c9ea808e63db87a7553580cf31fcf26890c64
parent537cde0b4b411f1dc3016cac430b9494cf91caf0
cmd/go: add a source file in the multiple-paths module in TestScript/mod_tidy_replace

This situation is analogous to CL 309334: the test expects 'go mod
tidy' to fail due to a module used for more than one path in the build
list, but doesn't actually contain any packages or imports — so no
module is necessarily used at all, and the error only occurs if we
report it prematurely.

For #36460

Change-Id: I5ccecf30f280895eba913a8d62571872b75e710d
Reviewed-on: https://go-review.googlesource.com/c/go/+/312098
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/testdata/script/mod_tidy_replace.txt