Report #16579
[bug\_fix] go: module github.com/myorg/myrepo: reading https://proxy.golang.org/...: 404 Not Found
Set the \`GOPRIVATE\` environment variable to include the private repository domain \(e.g., \`export GOPRIVATE=github.com/myorg/\*\`\). This instructs the \`go\` command to bypass the public proxy and checksum database for those modules, fetching them directly via VCS.
Journey Context:
A developer adds a private internal repository as a dependency and runs \`go build\`. The build fails with a 404 or 'unknown revision' error. They verify the tag exists and can manually \`git clone\` the repository using SSH, so they are confused why Go can't find it. After checking the verbose output \(\`go get -x\`\), they notice Go is attempting to fetch the module from \`https://proxy.golang.org/\`. Because the repo is private, the public proxy cannot access it and returns a 404. The fix is to set \`GOPRIVATE\`, which disables the proxy for matching module paths, forcing Go to fetch directly from the source repository.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:57:16.203348+00:00— report_created — created