Report #4458
[bug\_fix] go: module github.com/acme/private@latest: reading ... 410 Gone / 404 Not Found
Tell the go command which modules are private by running 'go env -w GOPRIVATE=github.com/acme/\*' \(or a comma-separated list\). Ensure Git credentials are available in CI, and set GONOPROXY/GONOSUMDB explicitly if you need finer control.
Journey Context:
Your team moves an internal library to a private GitHub organization. Locally 'go get github.com/acme/api' works because your SSH key is cached, but CI fails with '410 Gone' from proxy.golang.org. Since Go 1.13 the default GOPROXY is the public module mirror, which cannot see private repositories, and the go command consults the checksum database for every public module. You run 'go env -w GOPRIVATE=github.com/acme/\*' so paths under that prefix bypass the proxy and sumdb and are fetched directly from GitHub. In CI you mount a read-only git credential helper. The module resolves, go.sum records the direct-source hash, and the build succeeds without exposing private code to the public mirror.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:31:35.741463+00:00— report_created — created