cmd/go: go mod tidy downloads v1 module, not clear whether it's necessary or not #46939
Labels
FrozenDueToAge
GoCommand
cmd/go
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?
I'm trying to understand why go mod tidy is accessing a v1 module when only the v2 module is required. in particular, this line seems odd as a v1 module that is not required is being downloaded (full details further below):
..but..
Here are the full details (create a main.go file and then make it into a module and run go mod tidy).
What did you expect to see?
I expected to only see the v2 module, and not the v1.
(Is this something to do with transitive dependencies? Does "mod why" report these?)
What did you see instead?
both v1 and v2 being downloaded.
The text was updated successfully, but these errors were encountered: