feat: DGR-005A dense Llama owned range loader
This commit is contained in:
@@ -151,10 +151,11 @@ def _verify_patched_source(source: pathlib.Path, lock: dict[str, Any]) -> None:
|
||||
raise DependencyError(f"patched paths drifted: expected {lock['patched_paths']}, got {changed_paths}")
|
||||
if _git(source, "write-tree") != lock["patched_tree"]:
|
||||
raise DependencyError("patched source tree differs from the locked patch stack")
|
||||
status = _git(source, "status", "--porcelain", "--untracked-files=all").splitlines()
|
||||
expected_status = [f"M {path}" if path == "CMakeLists.txt" else f"A {path}" for path in lock["patched_paths"]]
|
||||
if status != expected_status:
|
||||
raise DependencyError(f"local edits detected after applying patch stack: {status}")
|
||||
if _git(source, "diff", "--name-only"):
|
||||
raise DependencyError("local unstaged edits detected after applying patch stack")
|
||||
untracked = _git(source, "ls-files", "--others", "--exclude-standard").splitlines()
|
||||
if untracked:
|
||||
raise DependencyError(f"untracked files detected after applying patch stack: {untracked}")
|
||||
|
||||
|
||||
def build(source: pathlib.Path, build_dir: pathlib.Path) -> pathlib.Path:
|
||||
|
||||
Reference in New Issue
Block a user