Skip to content

generated-stale

Rung schema · correctness · default error

A file gantry generate owns is out of date or missing.

The ledger, the defect list and the platform pages are read far more often than they are written, so they are generated from the records and never edited by hand. If a generated file is allowed to drift, readers trust a page that no longer matches the rulings behind it. Comparing the files byte for byte with what gantry generate would write makes the generated pages as current as the records.

Run gantry generate and commit the result. Do not edit the files by hand: the next run overwrites them.

On a project with load errors the rule is skipped (“the project has load errors; fix them first”), as gantry generate refuses such a project: pages generated from a partly read project would drop whatever did not load.

Terminal window
$ gantry lint
docs/design/generated/ledger.md: error generated-stale: docs/design/generated/ledger.md is out of date
$ gantry generate