Skip to content

Commit 2eba3bc

Browse files
committed
Store the sha256 of the original file, not the compressed one
1 parent cedf756 commit 2eba3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def collect_and_move_artifacts(build_dir, target_triple):
130130
new_name = f"{target_triple}-{basename}"
131131
tar_gz_name = f"{new_name}.tar.gz"
132132
tar_gz_path = os.path.join(release_artifacts_dir, tar_gz_name)
133+
sha256 = compute_sha256(file_path)
133134
with tarfile.open(tar_gz_path, "w:gz", compresslevel=9) as tar:
134135
tar.add(file_path, arcname=basename)
135-
sha256 = compute_sha256(tar_gz_path)
136136
uri = tar_gz_name
137137
manifest["files"][new_name] = {"sha256": sha256, "uri": uri}
138138

0 commit comments

Comments
 (0)