Repository navigation
npm: real copies instead of symlinks in the macOS engine packages - #128
Merged
Merged
Conversation
npm drops symlinks, so the installed macOS engine lost the four Python.framework links and its digest no longer matched: the client refused to run it. Found by installing 0.5.0-alpha.6 from the registry in a clean folder. The builder now resolves symlinks into copies, and the pack job unpacks every tarball and checks the installed engine digest. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The leak check read the whole event line, which includes SHA-256 hex digests; '7772' can appear in one by chance (failed Python 3.10 on #128). It now checks only the fields that could carry data. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Installing 0.5.0-alpha.6 from npm on macOS failed with
engine_digest_mismatch: npm does not keep symlinks and the PyInstaller macOS engine has four (Python.framework). The client's integrity check did its job and refused the engine.npm/build.mjs:copyResolvedturns symlinks into real copies (fs.cpSyncdereferencestill kept them in Node 24). Real engine tested: it starts and answershello; 23 → 45 MB on disk, 15.9 MB tarball.npm/verify-packed.mjs+ a step innpm-pack.yml: unpack each tarball likenpm installand compare the engine digest with the built-in one; the fake macOS engine now has symlinks so a regression fails on every PR.🤖 Generated with Claude Code