Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fetch_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_micromamba(version, use_default_version):

# compute the sha256
sha256 = hashlib.sha256()
with open(outdir / f"micromamba-{dplat}", "rb") as f:
with open(outdir / f"micromamba-{dplat}{ext}", "rb") as f:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this.
There are actually 2 checksums to compute and write (one for the archive and another for the executable) and they need to be written in the corresponding .sha256 files.
So we would need to add another sha256 for either the executable (if you change this line) or leave this as is and add the one for the archive.

sha256.update(f.read())

with open(outdir / f"micromamba-{dplat}{ext}.sha256", "w") as f:
Expand Down