Skip to content

Conversation

@pberndt
Copy link

@pberndt pberndt commented Mar 28, 2025

Sum over the actual archive, not the executable.

Sum over the actual archive, not the executable.
# 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
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants