Report #29117
[bug\_fix] go: github.com/private-org/[email protected]: reading github.com/private-org/internal-api/go.mod at revision v1.0.0: unknown revision v1.0.0
Set the \`GOPRIVATE\` environment variable to include the private repository path \(e.g., \`GOPRIVATE=github.com/private-org/\*\`\) to bypass the public Go module proxy and checksum database.
Journey Context:
A developer adds a dependency on an internal private repository. They can clone it directly via \`git clone\` because their SSH keys are configured, but \`go mod tidy\` fails with a 404 or unknown revision error. They spend hours checking their Git credentials and SSH configs, wondering why Go can't fetch the repo. The root cause is that Go defaults to fetching modules via the public proxy \(\`proxy.golang.org\`\). The proxy doesn't have the private repo and returns an error. By setting \`GOPRIVATE\`, the Go toolchain is instructed to fetch the module directly from the source repository using VCS \(bypassing the proxy\), which then successfully uses the developer's existing SSH keys.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:15:54.555498+00:00— report_created — created