Skip to content

fix: Change hash algorithm to SHA1 in variants.md - #2984

Merged
wolfv merged 1 commit into
prefix-dev:mainfrom
nodtem66:patch-1
Dec 2, 2026
Merged

wolfv merged 1 commit into
prefix-dev:mainfrom
nodtem66:patch-1

Conversation

@nodtem66

@nodtem66 nodtem66 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The hashing algorithm in docs/varients.md is not correct:

This JSON string is then hashed with the ----> MD5 <---- hash algorithm, and produces the hash. For certain packages (such as Python packages) special rules exists, and the py<Major.Minor> version is prepended to the hash, so that the final hash would look something like py38h123123.

https://rattler-build.prefix.dev/latest/variants/#package-hash-from-variant

let mut hasher = Sha1::new();

This PR updates hashing algorithm from MD5 to SHA1 and adjusted example output.

Updated hashing algorithm from MD5 to SHA1 and adjusted example output.
@wolfv

wolfv commented Dec 2, 2026

Copy link
Copy Markdown
Member

Why?

@wolfv

wolfv commented Dec 2, 2026

Copy link
Copy Markdown
Member

Ah got it, it's a docs change :)

@wolfv
wolfv merged commit 3f4b5d1 into prefix-dev:main Dec 2, 2026
14 checks passed
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