Skip to content

Cirrus: Update brew uninstall node@20 to brew uninstall node@24#1465

Merged
DeeDeeG merged 2 commits intomasterfrom
Cirrus-fix-brew-uninstall-node-20
Feb 25, 2026
Merged

Cirrus: Update brew uninstall node@20 to brew uninstall node@24#1465
DeeDeeG merged 2 commits intomasterfrom
Cirrus-fix-brew-uninstall-node-20

Conversation

@DeeDeeG
Copy link
Member

@DeeDeeG DeeDeeG commented Feb 25, 2026

Cirrus replaced deprecated Homebrew node@20 package with non-deprecated Homebrew node@24 in their base CI images. So, bump the brew uninstall node@20 line to brew uninstall node@24 instead. (This Homebrew copy of Node has caused us some issues before, so we have been removing it. We install Node 16 using https://github.com/tj/n, so we can get rid of this copy of Node from Homebrew.)

Note: trying to uninstall node@20 when it wasn't already installed was causing an error:

brew uninstall node@20
Error: No such keg: /opt/homebrew/Cellar/node@20

(Avoid CI-run-breaking errors with this one weird trick!)

Verification process

Gets all the way through preparation and building, passes visual tests... https://cirrus-ci.com/task/4843477726396416?logs=test#L69 Looking good! ✅

(Note: This was a macOS-only issue, so I canceled the Linux task to save credits. It was a Cirrus-only issue as well, so I cancelled all GitHub Actions CI workflows as well.)

This used to come preinstalled in Cirrus's base CI image, and caused us
some problems before, so we uninstalled it. Now, with this Node package
version being deprecated in Homebrew, it is no-longer preinstalled in
Cirrus' base CI image, so we don't have to uninstall it manually!

Also, trying to uninstall this when it wasn't already installed was
causing an error:

```
brew uninstall node@20
Error: No such keg: /opt/homebrew/Cellar/node@20
```

(Avoid CI-run-breaking errors with this one weird trick!)
Cirrus' base CI image comes with node@24 now, not node@20 like it did
before.

We install Node 16 using tj/n, so we can get rid of this copy from
Homebrew.
@DeeDeeG DeeDeeG marked this pull request as ready for review February 25, 2026 01:47
@DeeDeeG DeeDeeG changed the title Cirrus: Don't try to uninstall already not installed node@20 package Cirrus: Update brew uninstall node@20 to brew uninstall node@24 Feb 25, 2026
Copy link
Member

@confused-Techie confused-Techie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that now the linked cirrus run is successfully installing the correct node version and not erroring out.

LGTM! Thanks for noticing & fixing this!

@DeeDeeG DeeDeeG merged commit 2877394 into master Feb 25, 2026
1 of 11 checks passed
@DeeDeeG
Copy link
Member Author

DeeDeeG commented Feb 26, 2026

We could also switch to actually setting up Node 20 instead of 16 in Cirrus, if that's what we're moving to everywhere. It's nice to know contributors can still get the repo working with Node 16 on their system for now, though. (It should not matter since we rebuild all the native code for Electron anyhow during the build process.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants