cmd/go: 'mod tidy' chooses points in requirement cycles that differ from other subcommands #34086
Labels
FrozenDueToAge
modules
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?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Added a new
cmd/go/testdata/script
test case, derived from https://github.com/prochac/mod-fmt-issue (H/T @prochac).What did you expect to see?
After
go mod tidy
completes successfully,go mod graph
should not modify thego.mod
file.What did you see instead?
go mod tidy
andgo mod graph
pick different points to retain in the cycle betweenb v0.2.0
andc v0.2.0
. (At least one point is necessary, and either is valid, so the choice is arbitrary — however, they should both pick the same one.)The text was updated successfully, but these errors were encountered: