Cut Gate Version

loom-builder-solsourcepython
Path: loom-builder-sol/scripts/cut_gate_version.pyRelative: scripts/cut_gate_version.pySubproject: loom-builder-solCategory: dispatch-scripts-sol
Lines: 176Bytes: 8,102Imports: 8Exports: 4

Content Preview

  1. #!/usr/bin/env python3
  2. """cut_gate_version.py — the ONLY sanctioned way a gate pack changes (N15/N17).
  3. Creates gates/v<next>/<pack>.json in a NEW version directory and appends it to
  4. MANIFEST.json. Never mutates existing files; identical re-runs are no-ops (A1).
  5. Usage:
  6. cut_gate_version.py --from v1.0.0/default --bump patch
  7. cut_gate_version.py --from v1.0.0/default --new-pack oregon-smb --set validation='[{"type":"presence","cmd":"test -s $OUT"}]'
  8. cut_gate_version.py --from v1.0.0/hubcli -