Package workstation tools, reuse emulator sessions, and derive build versions

This commit is contained in:
2026-09-23 03:45:48 +08:00
parent 6bfcce8070
commit f5d9f96409
79 changed files with 878 additions and 132 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
import hashlib
import json
from pathlib import Path
from fds_version import validate
def digest(path):
@@ -42,7 +43,7 @@ def artifacts(project):
def read_lock(project):
path = Path(project) / '.host/frozen/lock.json'
lock = json.loads(path.read_text())
if lock.get('format') != 1 or lock.get('version') != '0.1.0':
if lock.get('format') != 1 or not validate(lock.get('version')):
raise ValueError('Build does not identify a supported frozen input snapshot')
return lock, digest(path)