Documentation
¶
Overview ¶
check-generated exits non-zero when the committed generated artifacts (pkg/rt/core_compiled.lgb + the lowered Go tree) are stale relative to their .lg / lgbgen sources. Content-based, so it is reliable across git/jj checkouts. Used by the Makefile `check-generated` target, by CI, and by the git pre-commit hook (scripts/pre-commit).
With -write it instead recomputes the digest and rewrites the canonical manifest (a light refresh — the digest only, no bundle/tree rebuild). With -o PATH it writes the recomputed digest to PATH; that is how the generated.sums git merge driver (scripts/git-merge-sums.sh) produces the merged manifest at git's output path. Recomputing beats keep-current so the signature never lands stale after a merge.