cmd/go: inconsistent inclusion of indirect requirements in go.mod #54526
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
N.B.: I am not picking on the two chosen modules here, they just happened to be those which I was using when I noticed the problem, and I wasn't able to deduce the root cause and thus cannot reduce to a (more) minimal reproducible example.
$ go mod init example.com/indirect
go.mod
file for the presence of the go-spew moduleOther experiments:
What did you expect to see?
Any of the following would have made sense:
go get .../ristretto
go get .../dynamodb
What did you see instead?
Instead, the go-spew module didn't show up in my go.mod until after I removed the ristretto module.
Both ristretto and dynamodb seem to require go-spew indirectly; ristretto's go.mod specifies
go 1.17
and thus listsgo-spew
explicitly, while dynamodb's go.mod specifies onlygo 1.15
and doesn't list any indirect requirements.The text was updated successfully, but these errors were encountered: