mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
537cde0b4b
commit
9c1b769d5f
1 changed files with 7 additions and 0 deletions
|
|
@ -136,3 +136,10 @@ require (
|
|||
)
|
||||
|
||||
replace not-rsc.io/quote/v3 => rsc.io/quote/v3 v3.0.0
|
||||
-- multiple-paths/use.go --
|
||||
package quoter
|
||||
|
||||
import (
|
||||
_ "not-rsc.io/quote/v3"
|
||||
_ "rsc.io/quote/v3"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue