Repository navigation
fix(core): guard against archs dropped by Electron 44 (win32/ia32, linux/armv7l) - #4328
Merged
Merged
Conversation
…nux/armv7l) Electron stopped publishing prebuilt win32/ia32 and linux/armv7l binaries starting with 44.0.0-alpha.4, but allOfficialArchsForPlatformAndVersion() from @electron/packager (as of 18.x) still reports them, so --arch=all expansions tried to download artifacts that no longer exist and failed with an opaque 404. Add a version-aware guard shared by parseArchs() and the package API: - --arch=all now filters the dropped arch out of the expansion (with a warning) for Electron >= 44.0.0-alpha.4 - explicit --arch=ia32 / --arch=armv7l requests fail with a descriptive error pointing users at Electron <= 43 (supported until Jan 2027) - Electron <= 43 and the 44.0.0-alpha.1 through alpha.3 prereleases are unaffected Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KEEZg64JKFrSDAc7u4V4Na
erickzhao
reviewed
Jul 23, 2026
| * `@electron/packager` (as of 18.x) still reports them, which would otherwise | ||
| * surface as an opaque download 404. | ||
| */ | ||
| export function isDroppedArch( |
Member
There was a problem hiding this comment.
isDroppedArch is a very generalized helper function, but the platform matrix evolves over time and this isn't the only time we've had to drop/add platforms in the past. Let's frame this function more specifically?
I guess we won't really have to future-proof Forge 7 very much anymore, but I think the shape of the code feels a bit weird.
…n 44 ia32/armv7l removal Addresses review feedback: replace the generalized isDroppedArch helper and DROPPED_ARCHS registry with an explicit isArchDroppedByElectron44 check for the two combinations Electron 44 stopped publishing (win32/ia32 and linux/armv7l). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KEEZg64JKFrSDAc7u4V4Na
MarshallOfSound
approved these changes
Jul 24, 2026
MarshallOfSound
marked this pull request as ready for review
July 24, 2026 18:16
erickzhao
added this pull request to the merge queue
Jul 24, 2026
5 tasks done
erickzhao
pushed a commit
that referenced
this pull request
Sep 11, 2026
…nux/armv7l) (#4328) * fix(core): guard against archs dropped by Electron 44 (win32/ia32, linux/armv7l) Electron stopped publishing prebuilt win32/ia32 and linux/armv7l binaries starting with 44.0.0-alpha.4, but allOfficialArchsForPlatformAndVersion() from @electron/packager (as of 18.x) still reports them, so --arch=all expansions tried to download artifacts that no longer exist and failed with an opaque 404. Add a version-aware guard shared by parseArchs() and the package API: - --arch=all now filters the dropped arch out of the expansion (with a warning) for Electron >= 44.0.0-alpha.4 - explicit --arch=ia32 / --arch=armv7l requests fail with a descriptive error pointing users at Electron <= 43 (supported until Jan 2027) - Electron <= 43 and the 44.0.0-alpha.1 through alpha.3 prereleases are unaffected Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KEEZg64JKFrSDAc7u4V4Na * refactor(core): frame dropped-arch helper specifically as the Electron 44 ia32/armv7l removal Addresses review feedback: replace the generalized isDroppedArch helper and DROPPED_ARCHS registry with an explicit isArchDroppedByElectron44 check for the two combinations Electron 44 stopped publishing (win32/ia32 and linux/armv7l). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KEEZg64JKFrSDAc7u4V4Na --------- Co-authored-by: Claude <[email protected]> (cherry picked from commit eeac71e) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Bb2CkBAwF2iaKw1fjfQd9h
erickzhao
added a commit
that referenced
this pull request
Sep 11, 2026
…nux/armv7l) (#4377) fix(core): guard against archs dropped by Electron 44 (win32/ia32, linux/armv7l) (#4328) * fix(core): guard against archs dropped by Electron 44 (win32/ia32, linux/armv7l) Electron stopped publishing prebuilt win32/ia32 and linux/armv7l binaries starting with 44.0.0-alpha.4, but allOfficialArchsForPlatformAndVersion() from @electron/packager (as of 18.x) still reports them, so --arch=all expansions tried to download artifacts that no longer exist and failed with an opaque 404. Add a version-aware guard shared by parseArchs() and the package API: - --arch=all now filters the dropped arch out of the expansion (with a warning) for Electron >= 44.0.0-alpha.4 - explicit --arch=ia32 / --arch=armv7l requests fail with a descriptive error pointing users at Electron <= 43 (supported until Jan 2027) - Electron <= 43 and the 44.0.0-alpha.1 through alpha.3 prereleases are unaffected Claude-Session: https://claude.ai/code/session_01KEEZg64JKFrSDAc7u4V4Na * refactor(core): frame dropped-arch helper specifically as the Electron 44 ia32/armv7l removal Addresses review feedback: replace the generalized isDroppedArch helper and DROPPED_ARCHS registry with an explicit isArchDroppedByElectron44 check for the two combinations Electron 44 stopped publishing (win32/ia32 and linux/armv7l). Claude-Session: https://claude.ai/code/session_01KEEZg64JKFrSDAc7u4V4Na --------- (cherry picked from commit eeac71e) Claude-Session: https://claude.ai/code/session_01Bb2CkBAwF2iaKw1fjfQd9h Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <[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.
Requested by Samuel Attard, David Sanders · Slack thread
Summarize your changes:
Electron stopped publishing prebuilt
win32/ia32andlinux/armv7lbinaries:v44.0.0-alpha.4andv45.0.0-nightly.20260714were the first releases without them (44.0.0-alpha.1 through alpha.3 still shipped them, and Electron ≤ 43 keeps publishing them until end-of-support in January 2027). This PR adds a Forge-local, version-aware guard for those two platform/arch pairs.Before:
electron-forge make --arch=all(andpackage --arch=all) on Electron 44+ still tried to build forwin32/ia32/linux/armv7l, becauseallOfficialArchsForPlatformAndVersion()from@electron/packager(as of 18.x) still reports them for Electron ≥ 44. The build then died with an opaque download 404 from@electron/get.--arch=ia32on win32 /--arch=armv7lon linux with Electron 44+ failed the same way — a 404 with no hint about the real cause.After:
--arch=allon Electron ≥ 44.0.0-alpha.4 silently-but-loudly skips the dropped arch: it is filtered out of the expansion and a warning names the cut (e.g.Skipping win32/ia32: Electron >= 44 no longer publishes prebuilt binaries for this architecture. Use Electron <= 43 (supported until Jan 2027) to target it.).--arch=ia32/--arch=armv7lrequests on Electron ≥ 44.0.0-alpha.4 fail up front with a descriptive error:Electron >= 44 no longer publishes Windows ia32 / Linux armv7l builds … Use Electron <= 43 (supported until Jan 2027).>= 44.0.0-alpha.4, not a plain>= 44.0.0comparison (which would wrongly exempt the 44 prereleases).How:
packages/api/core/src/util/supported-archs.tsholds the single source of truth:isDroppedArch()(semvergteagainst44.0.0-alpha.4),filterSupportedArchs()(used forallexpansions, warns per skipped arch), andassertSupportedArch()(throws for explicit requests).packages/api/core/src/util/parse-archs.tsapplies the filter toallexpansions and the assertion to explicit/comma-separated arch lists — this coversmake.packages/api/core/src/api/package.tspreviously passed--arch=allstraight through to@electron/packager(bypassingparseArchs); it now resolves the Electron version first and expands the arch viaparseArchs, so both entry points share the guard.@electron/packageraccepts an arch array, and the expansion uses packager's ownallOfficialArchsForPlatformAndVersion(), so behaviour is otherwise unchanged.@electron/packagerat^18.3.5, so an upstream fix toallOfficialArchsForPlatformAndVersion()would land in a new packager major and would not flow into Forge through the caret range. Bumping the packager major is the eventual root fix and is deliberately left out of this PR.spec/fast/util/supported-archs.spec.ts(new),spec/fast/util/parse-archs.spec.ts(44-era cases:allexcludes ia32/armv7l on 44.0.0-alpha.4/44.0.0/45.x but includes them on 43.x and 44.0.0-alpha.3; explicit requests error), andspec/slow/package.slow.spec.ts(explicit ia32/armv7l via the package API rejects with the descriptive error; hermetic — pins an exactelectrondevDependency so no download is needed).Follow-up (not in this PR): bump
@electron/packagerto a major whoseallOfficialArchsForPlatformAndVersion()is Electron-44-aware, then this guard'sall-filtering becomes a no-op safety net.Generated by Claude Code