repo/lockfile-committed/go
Dependency lockfile is committed
Implements repo/lockfile-committed for go.
| Severity | error |
| Tiers | 1, 2 |
| Stacks | go |
| Scope | each |
| Kind | expr |
| Source | library v0.1.0 |
| Selected by | fleetlint-recommended@v0.1.0 |
Requirement
go.sum is tracked when go.mod requires any module.
Why
Builds are reproducible only when dependency versions are pinned in git.
Check
"go.sum" in tracked() || scan("go.mod", r'^\s*require\b').size() == 0Fix
Run go mod tidy and commit go.sum.
Agent instruction: Run the package manager to produce the lockfile, remove any .gitignore entry for it, and commit it.
See: https://fleetlint.org/baseline/#dependencies, https://fleetlint.org/stacks/#go
Generated by fleetlint docs from catalog v0.1.0.