cmd/go: improve diagnostic for module graph errors from unpruned transitive dependencies in 'go get' #48024
Labels
GoCommand
cmd/go
help wanted
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
In the Go 1.17 release I left a TODO for a better error in a fairly obscure case (an error loading the versions found in the upgraded module graph, when that path arises from a transitive dependency of a
go 1.16
or earlier module).The error today should indicate which module produced the error, but ideally the error should also log the path to that module.
Such errors should become more rare over time as modules upgrade to
go 1.17
and higher. However, it would still be nice to do the TODO for the better diagnostic at some point.go/src/cmd/go/internal/modload/edit.go
Lines 255 to 260 in acdea4f
The text was updated successfully, but these errors were encountered: