Report #77142
[bug\_fix] go: missing go.sum entry for module providing package example.com/foo
Run \`go mod tidy\` to synchronize the \`go.mod\` and \`go.sum\` files with the actual imports in the codebase.
Journey Context:
A developer adds a new third-party package to their code using an \`import\` statement and immediately runs \`go build\`. The build fails, complaining about a missing \`go.sum\` entry. The developer might try manually editing \`go.sum\` or running \`go get\` with no arguments, which doesn't fix it. The root cause is that the Go build system requires cryptographic checksums for all direct and indirect dependencies in \`go.sum\` to ensure supply chain security and reproducibility. Simply adding an import doesn't fetch the module or generate the checksum. Running \`go mod tidy\` analyzes the source code, downloads any missing modules, and automatically adds the required checksums to \`go.sum\`, resolving the error.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:04:18.837751+00:00— report_created — created