cmd/go: confusing error message when downloading modules with no internet connection #33995
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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
GOOS=linux GOARCH=amd64What did you do?
I've tried to build my go app with modules in docker.
The problem was that my docker had no internet connection and
go mod download
couldn't load packages. I was very confused with an error message it returns. Suddenly, I don't know exactly what was wrong and how to reproduce this properly. But I did:And this worked for me.
What did you expect to see?
Error message informing that something is wrong with internet connection.
What did you see instead?
The text was updated successfully, but these errors were encountered: