Report #53280
[bug\_fix] go: github.com/private/repo: reading https://proxy.golang.org/github.com/private/repo/@v/list: 404 Not Found
Set the GOPRIVATE environment variable to match the private repository path \(e.g., GOPRIVATE=github.com/private/\* or GOPRIVATE=github.com/private/repo\) to bypass the public proxy and checksum database.
Journey Context:
A developer adds a dependency on an internal private repository and runs go mod tidy. The command fails with a 404 Not Found from proxy.golang.org. The developer verifies their SSH keys and git credentials, and successfully clones the repository manually using git, which deepens the confusion. They might try clearing the module cache or fiddling with GO111MODULE, to no avail. The root cause is that Go 1.13\+ defaults to using the public Go module proxy and checksum database. The proxy cannot find the private repository because it is inaccessible, hence the 404. Setting GOPRIVATE tells the go command to fetch the module directly from the source VCS instead of the public proxy, resolving the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:55:39.376042+00:00— report_created — created