Repository navigation
build: complete Electron prebuilt extraction before the legal step - #36
Merged
Merged
Conversation
The v1.0.0 release build failed on all three OS matrix jobs: npm ci on CI's Node leaves Electron 43's prebuilt only partially extracted (extract-zip/yauzl regression, electron/electron#51619), so node_modules/electron/dist lacks the Chromium/Node license notices and prepare-legal.mjs's guard fails before packaging. The yauzl ^3.3.1 override mitigates this for Electron 34 but not 43. Re-run electron's installer after npm ci and before npm run legal in the release and dev-release workflows to finish the extraction. test-electron.yml is unaffected (it runs no legal step). PR CI never caught this because the legal step lives only in the packaging workflows. Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Fixes the v1.0.0 release build failure.
The
release-electron.ymlbuild matrix failed on macOS, Windows, and Linux atnpm run legal. Root cause:npm cion CI's Node leaves Electron 43's prebuilt only partially extracted (the extract-zip/yauzl regression, electron/electron#51619), sonode_modules/electron/distis missingLICENSES.chromium.htmlandLICENSE.scripts/prepare-legal.mjscorrectly guards against shipping empty notices and exits 1. Theyauzl ^3.3.1override handled this for Electron 34 but does not cover Electron 43.Fix: run
node node_modules/electron/install.jsafternpm ciand beforenpm run legalin bothrelease-electron.ymlanddev-release-electron.yml; it completes the extraction (verified in a clean Electron 43 install:LICENSES.chromium.htmlgoes from absent to ~20 MB, well over the 1 MB guard).test-electron.ymlis untouched, since it runs no legal step, which is also why PR CI never surfaced this.The same gap exists in the shared handbook templates and in conception-space (being handled separately); this should land in the template so the family stays consistent.
🤖 Generated with Claude Code