go modules ai_generated true

missing go.sum entry for module

ID: go/missing-go-sum-entry

Also available as: JSON · Markdown
97%Fix Rate
98%Confidence
50Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
121 active

Root Cause

Dependency checksum not recorded in go.sum file.

generic

Workarounds

  1. 97% success Run go mod tidy to update go.sum with correct entries
    Adds missing entries and removes unused ones

    Sources: https://go.dev/ref/mod#go-mod-tidy

  2. 92% success Run go mod download to download and verify all dependencies
    Downloads all modules and updates go.sum

Dead Ends

Common approaches that don't work:

  1. Deleting go.sum and recreating 60% fail

    Removes all verified checksums; next build verifies from scratch against a potentially compromised source

  2. Setting GONOSUMCHECK to skip verification 85% fail

    Disables tamper detection for dependencies

Error Chain

Frequently confused with: