cmd/go/internal/modcmd: download with -json flag doesn't print JSON objects to stdout for some module download errors #69510
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.23.1 darwin/arm64
Output of
go env -changed
in your module/workspaceGOPROXY='http://127.0.0.1'
What did you do?
https://pkg.go.dev/cmd/go#hdr-Download_modules_to_local_cache says:
It seems that doesn't always happen for some networking errors observed in the Go build system (build 8736907273916323825 being one example). Consider a minimal set of steps which seems to reproduce the problem:
What did you see happen?
No JSON is printed to stdout:
What did you expect to see?
JSON is printed to stdout, describing the error:
CC @matloob, @samthanawalla.
The text was updated successfully, but these errors were encountered: