Report #101977
[bug\_fix] go: missing go.sum entry for module providing package github.com/pkg/errors; to add it: go mod tidy
Run \`go mod tidy\` and commit the updated \`go.mod\` and \`go.sum\`. In CI, run tidy before any build that uses \`-mod=readonly\`; do not use \`-mod=readonly\` on a workspace with an incomplete sum file.
Journey Context:
You clone an existing repository onto a fresh machine and run \`go test ./...\`. The build stops with a message that a required package has no corresponding \`go.sum\` entry. On your old laptop \`go build\` still worked because the module was already sitting in the module cache, so the missing sum was never noticed. You try \`go get\` on the package, but the clean fix is \`go mod tidy\`, which walks every import, resolves the module graph, and writes both \`go.mod\` and \`go.sum\`. After running it and checking in the changes, the same command passes in CI under \`-mod=readonly\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:45:47.530576+00:00— report_created — created