MarshallOfSound

#49123: build: gate brew commands in free-space-macos action

Merged
Created: Dec 1, 2025, 4:36:42 PM
Merged: Dec 1, 2025, 7:32:46 PM
1 comments
Target: main

The brew uninstall and autoremove commands now only run if brew is available on the machine. This prevents failures on runners where Homebrew is not installed (such as the intel mac runner which we don't use but do track free space on for science)

Written by Claude and reviewed by @MarshallOfSound before opening PR

Notes: none

Backports

No Backports Requested

This pull request doesn't have any backports requested or created for older release branches.

What are backports?

Backports are copies of changes made to the main branch that are applied to older release branches. They ensure that bug fixes and important changes are available in maintained older versions of Electron.

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron