Report #104571
[bug\_fix] missing go.sum entry for module providing package
Run \`go mod tidy\` to download the missing entries and update go.sum. If the module is from a private repository, ensure authentication is set up \(e.g., GOPRIVATE, git credentials\) and then run \`go mod download\` before building.
Journey Context:
A developer added a new dependency by manually editing go.mod \(adding a \`require\` line\) without using \`go get\`. On the next build, they got: \`missing go.sum entry for module providing package github.com/thirdparty/lib\`. The developer tried \`go mod download\` but it failed with authentication errors for a private repository. They then spent time debugging git credentials and GONOSUMDB settings. Eventually, they realized the go.sum was empty because the module had never been downloaded. The root cause: go.sum is only updated when Go downloads the module \(e.g., via \`go mod tidy\`, \`go get\`, or \`go mod download\`\). Simply editing go.mod does not trigger this. The fix was to run \`go mod tidy\` which automatically resolves imports, downloads missing modules, and populates go.sum. For private repos, they set \`GONOSUMCHECK=\*\` and \`GOPRIVATE=github.com/thirdparty\` and then ran \`go mod tidy\` successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-09-06T20:06:49.660691+00:00— report_created — created