]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modcmd: error out if one module with two different paths
authorBaokun Lee <nototon@gmail.com>
Mon, 7 Oct 2019 14:33:57 +0000 (22:33 +0800)
committerBryan C. Mills <bcmills@google.com>
Tue, 22 Oct 2019 14:26:04 +0000 (14:26 +0000)
commitea726d8dc6f3fb6f02ff816d8bfafed96fc7788a
tree14ecb5317ff544e78cfadfffaa0f5fb33385592a
parentd29c14f3d2519d72a24c7060d99935f562c37db3
cmd/go/internal/modcmd: error out if one module with two different paths

If a single module is imported via two different paths, go mod tidy
should have reported this error instead of deferring it until go build.

Fixes #34650.

Change-Id: I9d09df1551b3e2083ed9f0bc77f2989073057717
Reviewed-on: https://go-review.googlesource.com/c/go/+/199598
Run-TryBot: Baokun Lee <nototon@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/script/mod_tidy_replace.txt
src/cmd/go/testdata/script/mod_vendor_replace.txt