Report #42988
[bug\_fix] go: github.com/internal/[email protected]: verifying go.sum: missing or unexpected version
Set the GOPRIVATE environment variable to include the private module path \(e.g., \`go env -w GOPRIVATE=github.com/internal/\*\`\), then clean the module cache and run \`go mod tidy\`.
Journey Context:
A developer working in a corporate network pulls a private repository from an internal Git server. The \`go mod tidy\` command fails with a checksum verification error. They initially think the go.sum file is corrupted and delete it, but the error returns. They try \`go clean -modcache\`, but it still fails. The root cause is that the Go toolchain is trying to verify the module's checksum against the public Google checksum database \(sum.golang.org\), which obviously doesn't have the private module. The GOPRIVATE variable tells the Go toolchain to bypass both the proxy and the checksum database for matching module paths, allowing the build to succeed using the internal VCS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:37:42.908437+00:00— report_created — created