Updated
On this page
Monorepo snapshot command that generates or verifies .rlsbl-monorepo/snapshot.json, capturing all package versions, dependencies, and graph structure.
#rlsbl.commands.monorepo.snapshot_cmd
#rlsbl.commands.monorepo.snapshot_cmd
Monorepo snapshot commands: write .rlsbl-monorepo/snapshot.json, or check it.
The two jobs used to be one command with a --check flag, which made the command's classification unanswerable: verifying is a pure read, regenerating writes and commits. They are two commands now -- monorepo snapshot is mutating and previews completely under --dry-run, monorepo snapshot-check is read_only and never writes anything.
#_load
python
def _load(project_root)Resolve the workspace and build its graph, or exit with guidance.
#_cmd_snapshot
python
def _cmd_snapshot(flags, project_root)Regenerate the workspace snapshot artifact and commit it.
#_cmd_snapshot_check
python
def _cmd_snapshot_check(flags, project_root)Verify the workspace snapshot artifact is current. Writes nothing.