cmd/go: go get ./... loops infinitely with specific go.mod, go.sum #52508
Labels
FrozenDueToAge
GoCommand
cmd/go
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, built from source on
master
and latest release.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Runing
go get ./...
on a specificgo.sum
andgo.mod
which I have provided here: https://github.com/arbourd/test-go-broke/tree/ac80f1816b6fa7b6ca7509c3e2fcf2f502003d19What did you expect to see?
go get ./...
to resolve packages or an error.What did you see instead?
Command will hang indefinitely.
Some sleuthing
The infinite loop seems to have origins here: https://github.com/golang/go/blob/go1.18.1/src/cmd/go/internal/modget/get.go#L350-L353
I built my own
go
binary with somefmt.Println
, and it seems thatchanged
is always true.The text was updated successfully, but these errors were encountered: