Report #944
[bug\_fix] cannot find module providing package gitlab.example.com/platform/internal/pkg: module gitlab.example.com/platform/internal/pkg: reading https://proxy.golang.org/.../pkg/@v/list: 404 Not Found
Set GOPRIVATE=\*.example.com,gitlab.example.com \(or the exact domain\) and ensure the host has valid git credentials for direct VCS access. Also set GONOSUMDB=\*.example.com so the public checksum database skips the private module.
Journey Context:
A CI job started failing after a new internal package was imported. The error suggested Go was trying to fetch gitlab.example.com from the public proxy, which could never resolve a private repository. The developer first added a replace directive to a local clone, which masked the problem on their laptop but broke CI. Checking go env revealed GOPRIVATE was empty. After setting GOPRIVATE=\*.example.com and GONOSUMDB=\*.example.com, go switched to direct git access, used the CI job token via git config, and resolved the module. The public proxy was no longer consulted for internal modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T15:51:43.379080+00:00— report_created — created