cmd/go: go mod tidy -e should tolerate DNS resolution and network failures #53136
Labels
FrozenDueToAge
GoCommand
cmd/go
help wanted
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
go version go1.18.2 linux/amd64
go mod tidy -e
should do whatever tidying it can while ignoring errors and it indeed does it quite well. Unfortunately, when some remote host can not be resolved (either directly or by module proxy), it fails hard, as following:I believe that it should not fail hard, but rather treat the network/DNS error as "skippable", in line with all the other possible errors.
For example, in my particular case, the missing packages are not really missing - they belong to the same project, but need to be generated (things like protobuf schema and such). Yet, I cannot tidy the rest of the project without making the remote git repo somehow available.
The text was updated successfully, but these errors were encountered: