mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-11-13 17:58:18 +00:00
fix(benchmarks): fact_manifest_ref digests entry-pack JSON symmetrically with disk
This commit is contained in:
@@ -69,10 +69,9 @@ def fact_manifest_ref(repo_root: Path, ref: str, subpath: str = "") -> dict[str,
|
|||||||
prefix = f"{subpath}/" if subpath else ""
|
prefix = f"{subpath}/" if subpath else ""
|
||||||
manifest: dict[str, str] = {}
|
manifest: dict[str, str] = {}
|
||||||
for path in listing:
|
for path in listing:
|
||||||
if not path.endswith(".toml"):
|
if path.endswith(".toml") or (path.startswith(f"{prefix}entries/") and path.endswith(".json")):
|
||||||
continue
|
blob = subprocess.run(["git", "-C", str(repo_root), "show", f"{ref}:{path}"], capture_output=True, check=True).stdout
|
||||||
blob = subprocess.run(["git", "-C", str(repo_root), "show", f"{ref}:{path}"], capture_output=True, check=True).stdout
|
manifest[path.removeprefix(prefix)] = _sha256_bytes(blob)
|
||||||
manifest[path.removeprefix(prefix)] = _sha256_bytes(blob)
|
|
||||||
return manifest
|
return manifest
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user