Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain in the changes that pin Electron rebuild tooling and switch to installed commands.
No open issues 🎉
What changed in this PR
Pins the native-module rebuild tooling to address Electron 43.8.3 ABI resolution failures in PinK CI and make rebuilds reproducible.
Changes:
- Adds
@electron/rebuildversion4.2.1as a development dependency. - Locks its
node-abidependency to4.43.0. - Runs the installed
patch-packageandelectron-rebuildcommands instead of usingnpx.
| File | Description |
|---|---|
workflow/electron-rebuild.js |
Switches rebuild steps to installed commands. |
package.json |
Pins @electron/rebuild to 4.2.1. |
package-lock.json |
Locks rebuild tooling and its transitive dependencies. |
Review effort: Balanced
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.
Summary
The native module rebuild in PinK CI stopped before compilation because the copy of
node-abiloaded bynpx @electron/rebuildcould not resolve the ABI for Electron 43.8.3. The old command left the rebuild tool version unpinned.Pin
@electron/rebuildto 4.2.1 and lock itsnode-abidependency to 4.43.0. The rebuild script now runs bothpatch-packageandelectron-rebuildfrom the dependencies installed by npm.Verification
npm run rebuildon macOS arm64. Bothglandsharprebuilt successfully.