cmd/go: list command fails when directory is the target of a module replace directive #29548
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes the issue is reproducible with the latest version of go (
go1.12beta1
)What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The following
testscript
reproduces the issue:What did you see?
go list ./gopath/pkg/mod/example.com/fruit@v1.0.0
passes with outputgo list ./gopath/pkg/mod/example.com/replacedfruit@v1.0.0
fails with outputWhat did you expect to see?
go list ./gopath/pkg/mod/example.com/replacedfruit@v1.0.0
should pass because that is the directory in which the replacedexample.com/fruit
is now locatedgo list ./gopath/pkg/mod/example.com/fruit@v1.0.0
should fail because that module is now located elsewhere due to the aforementionedreplace
ingo.mod
.cc @bcmills @myitcv
The text was updated successfully, but these errors were encountered: