Report #52730
[bug\_fix] go: module ...: reading ... go.mod: 410 Gone
Set the \`GOPRIVATE\` environment variable to match the private module's path \(e.g., \`export GOPRIVATE=github.com/myorg/\*\`\) to bypass the public Go module proxy and checksum database.
Journey Context:
A developer tries to \`go get\` an internal company module hosted on a private GitHub repository. The command fails with a 410 Gone or 403 Forbidden error from \`proxy.golang.org\`. They might think their GitHub token is missing or the repository is deleted. However, the root cause is that by default, the Go toolchain fetches all modules through the public Google-run proxy. The proxy does not have the private module, and attempting to fetch it results in an error. The fix is to tell the Go toolchain to fetch this module directly from the source repository instead of the public proxy. Setting \`GOPRIVATE=github.com/myorg/\*\` configures the toolchain to bypass the proxy and checksum DB for matching paths, allowing the private fetch to succeed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:00:18.975440+00:00— report_created — created