cmd/go: go mod why fails for replacement modules #30720
Labels
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
When one module is replaced by another,
go mod why
does not acknowledge the replacement module.Here's an example (https://godoc.org/github.com/rogpeppe/go-internal/cmd/testscript on the below file to reproduce):
It prints "main module does not need module
example.com/c
, butexample.com/c
is definitely in use as the replacement forexample.com/a
which isn't actually used at all.The text was updated successfully, but these errors were encountered: