fleetlint Policy for a fleet of repositories
v0.4
Getting started

repo/lockfile-committed/go

Dependency lockfile is committed

Implements repo/lockfile-committed for go.

Severityerror
Tiers1, 2
Stacksgo
Scopeeach
Kindexpr
Sourcelibrary v0.1.0
Selected byfleetlint-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() == 0

Fix

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.