19 lines
654 B
Python
19 lines
654 B
Python
"""Rebuild this text correction against the actual already-documented baseline."""
|
|
|
|
import json
|
|
import subprocess
|
|
|
|
from build_definition import PATHS, REPO, build
|
|
|
|
BASE = "2c62542b2e0ee9738bf1afd9352989ea05d85d81"
|
|
RESOURCE = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
|
|
|
|
|
def build_all():
|
|
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
|
|
current = json.loads(json.dumps(previous, ensure_ascii=False))
|
|
for i, path in enumerate(PATHS):
|
|
assert "fixed_version_document" in previous[path]
|
|
current[path]["fixed_version_document"] = build(i)
|
|
return current, previous
|