Report #104691
[bug\_fix] go: github.com/foo/[email protected]: reading https://proxy.golang.org/github.com/foo/bar/@v/v1.2.3.info: 404 Not Found
Run \`GOPROXY=direct go get github.com/foo/[email protected]\` to bypass the proxy and fetch directly from the version control system. If the module is private, configure \`GOPRIVATE\` or \`GONOSUMCHECK\` environment variables, and ensure authentication \(e.g., SSH keys, \`.netrc\`\) is set up. If the version does not exist, remove the dependency or use an existing tag.
Journey Context:
A developer tried to add a new dependency: \`go get github.com/foo/[email protected]\`. The command failed with a 404 from the Go module proxy. They checked GitHub and confirmed the tag \`v1.2.3\` existed. After an hour of debugging, they realised the repository had been made private after the tag was pushed, and the Go proxy could not access it. They set \`GOPRIVATE=github.com/foo/bar\` in their shell and re-ran \`go get\`, but the proxy still tried to fetch the version. They then used \`GOPROXY=direct\` to force direct access, and it succeeded because they had proper SSH keys configured. The fix was to either set \`GOPRIVATE\` to skip the proxy for that module, or to always use \`GOPROXY=direct\` for private modules. The root cause: the default Go proxy \(\`proxy.golang.org\`\) cannot authenticate to private repositories; modules must be explicitly excluded from proxy lookup via \`GOPRIVATE\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-09-27T20:10:30.594050+00:00— report_created — created