Skip to content

node: fix wrong hash algorithm#539

Merged
bbhtt merged 2 commits into
flatpak:masterfrom
YUCLing:fix/wrong-hash-algo
May 21, 2026
Merged

node: fix wrong hash algorithm#539
bbhtt merged 2 commits into
flatpak:masterfrom
YUCLing:fix/wrong-hash-algo

Conversation

@YUCLing

@YUCLing YUCLing commented May 21, 2026

Copy link
Copy Markdown
Contributor

In response to #537 (comment) , I changed the algo field of entry to integrity_algo, which is tarball's hash algorithm, not for CAFS. It was not fully tested after the change (To be frank, I forgot why I wrote sha512 in the first place 😢 ). For CAFS, pnpm always uses sha512:

https://github.com/pnpm/pnpm/blob/8695496f58edf54836d440b01a862b46eaa7f497/store/cafs/src/index.ts#L31

This PR reverts the mistake and adds the comment to avoid future confusion. It's tested in the field with an actual lockfile and pnpm ran fine without errors.

@YUCLing
YUCLing requested a review from a team as a code owner May 21, 2026 14:53
@github-actions github-actions Bot added the node label May 21, 2026
@bbhtt
bbhtt merged commit 6f3f087 into flatpak:master May 21, 2026
7 checks passed
@YUCLing
YUCLing deleted the fix/wrong-hash-algo branch May 21, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants