check-generated

command
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL