Dev Tools · 2h ago
Fix Go's GOPROXY Error in 30 Seconds
The 'GOPROXY list is not the empty string, but contains no entries' error occurs when Go's module proxy variable is malformed, often due to stray commas or shell overrides. Clearing the session override with 'unset GOPROXY' and setting a valid proxy via 'go env -w GOPROXY=https://proxy.golang.org,direct' resolves it. The issue is common on Windows with Git Bash, where environment variables silently override Go's config.
Meridian48 take
A straightforward debugging guide for a common Go environment issue, but the real takeaway is how fragile Go's module resolution can be across different shells and OS configurations.
Read the full reporting
Fixing "GOPROXY list is not the empty string, but contains no entries" in Go →
DEV Community
go-programmingenvironment-variables