core go mod verify
Verify dependencies have not been modified.
Wrapper around go mod verify. Checks that dependencies in the module cache match their checksums in go.sum.
Usage
bash
core go mod verifyWhat It Does
- Verifies each module in the cache
- Compares against go.sum checksums
- Reports any tampering or corruption
Examples
bash
# Verify all dependencies
core go mod verifyOutput
all modules verifiedOr if verification fails:
github.com/example/pkg v1.2.3: dir has been modified