cmd/go: improve error message for unparsable, too-new, go.mod #70979
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Split from #70949.
The tl;dr of that issue is:
tool
blockThe 1.23 toolchain does not upgrade because of GOTOOLCHAIN=local, so it attempts to parse the go.mod itself. It does not understand
tool
blocks, so it reports a parse error:We could have a better error message in this case. Perhaps one of:
The text was updated successfully, but these errors were encountered: