Stabilize bundled component installation #8

Merged
Dusk-92 merged 18 commits from test/stable-bundled-components into main 2026-09-03 14:42:37 +00:00
Showing only changes of commit 3617087b0d - Show all commits
+3 -5
View File
@@ -1,3 +1,4 @@
import hashlib
import json
import os
import struct
@@ -1184,12 +1185,9 @@ class BundledComponentSafetyTests(unittest.TestCase):
with open(source, "wb") as handle:
handle.write(b"known bundled component")
expected_sha = setup_tool_dynamic.hashlib.sha256(
expected_sha = hashlib.sha256(
b"known bundled component"
).hexdigest() if hasattr(setup_tool_dynamic, "hashlib") else None
if expected_sha is None:
import hashlib
expected_sha = hashlib.sha256(b"known bundled component").hexdigest()
).hexdigest()
with open(
os.path.join(fallback, "versions.json"),