cmd/go: panic when go getting exp/slices and project contains old dependencies #61738
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
With the following go.mod file i ran
go get golang.org/x/exp/slices@v0.0.0-20230801115018-d63ba01acd4b
and got a panic in the go tool:go get golang.org/x/exp/slices@v0.0.0-20230801115018-d63ba01acd4b
Outputcat go.mod
OutputBy running a full update of the dependencies with
go get -u ./...
the problem seems to vanishWhat did you expect to see?
Assuming this happens due to outdated dependencies, a message stating the fact. But not that the go tool panics
What did you see instead?
The panic
The text was updated successfully, but these errors were encountered: