Package workstation tools, reuse emulator sessions, and derive build versions
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user