Report #79498
[bug\_fix] go: github.com/myorg/[email protected]: reading github.com/myorg/internal/go.mod at revision v0.0.0: unknown revision v0.0.0 \(often preceded by 404 Not Found from proxy.golang.org\)
Set the \`GOPRIVATE\` environment variable to include the private repository domain \(e.g., \`go env -w GOPRIVATE=github.com/myorg/\*\`\).
Journey Context:
A developer tries to pull in an internal company package. They run \`go get github.com/myorg/internal\` and get a 404 error from \`proxy.golang.org\`. They know the repo exists and their SSH keys are set up for GitHub. They spend hours debugging their Git configuration, trying to add GitHub tokens to \`.gitconfig\`, and fiddling with \`GOPROXY\`. They might even try \`GOPROXY=direct\`, which then fails at the checksum database \(\`sum.golang.org\`\) with a verification error because the private repo isn't in the public sum DB. The root cause is that the default \`GOPROXY\` \(\`https://proxy.golang.org,direct\`\) routes all requests through the public Google-run proxy first, which obviously cannot access private GitHub repos. The fix works because \`GOPRIVATE\` tells the Go toolchain to bypass both the public proxy and the checksum database for matching paths, falling back to direct VCS access which correctly uses the developer's local Git/SSH credentials.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:02:26.769346+00:00— report_created — created