Skip to content

Update brew extension - #31820

Merged
raycastbot merged 4 commits into
raycast:mainfrom
chrismessina:ext/brew
Oct 2, 2026
Merged

raycastbot merged 4 commits into
raycast:mainfrom
chrismessina:ext/brew

Conversation

@chrismessina

@chrismessina chrismessina commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

New Manage Taps command, plus installing from a third-party tap straight from Search. Homebrew 7 will not load a formula, cask or command from a non-official tap until it is trusted (brew trust), and it trusts a package by itself whenever a command names it, dry runs included. This release makes that trust something the user agrees to, one package at a time, instead of something that happens as a side effect.

image
  • Manage Taps shows every added tap as a section listing the formulae and casks it provides. The rows are Search's own rows, so each package keeps its usual actions; the tap's actions (Trust Tap, Stop Trusting Tap, Remove Tap, Open Repository) follow them. A dropdown narrows the list to one tap. Typing user/repo (or user/repo <url> for a repository not named homebrew-…) offers to add it.

  • A tap that only adds brew commands gets a single row that names them, opens the repository, and copies each command.

  • A trust mark appears only on the exception: a package trusted on its own inside a tap that is not trusted.

  • Search recognizes a pasted user/repo/name, or a whole line copied from a project's install page, and offers it as a row. One confirmation adds the tap, trusts that one package, and installs it.

  • Trust before every named command. Install, Upgrade, Preview Install, Preview Upgrade and the Run … in Terminal actions now ask first, and trust only the package, never its tap. Upgrade All needs no gate: an unnamed brew upgrade skips untrusted taps and trusts nothing.

  • Fix: third-party packages are now passed to brew by their full name (user/repo/name). Unqualified, brew resolves homebrew/core first, so a tapped package sharing a core name installed the core one. The sidebar also no longer shows a same-named core package's status for them.

  • A tap package that no longer loads is reported in its section header ("N Won't Load") instead of failing the whole list.

  • On Homebrew 6, Manage Taps still adds, browses and removes taps; the trust actions and wording appear only on Homebrew 7.

The Homebrew behavior above was measured on 7.0.6 and is written up in AGENTS.md under "Third-party taps and trust". Tested hands-on by adding and installing from jundot/omlx (a repository not named homebrew-…) and steipete/tap. 412 unit tests; tsc, ray lint and ray build are clean.

Checklist


Note

Medium Risk
Changes install/upgrade/preview paths and shell command identifiers for third-party taps; trust mistakes could block installs or allow silent trust if gating is bypassed, but core/cask behavior is unchanged and failures fail closed on trust checks.

Overview
Adds third-party tap support for Homebrew 7’s brew trust model: a new Manage Taps command lists each tap’s formulae/casks (with add, remove, and tap-level trust on HB7), and Search can install from a pasted user/repo/name or install-page line after one confirmation (tap → trust one package → install).

Trust is explicit before named brew commands. ensureTrusted runs ahead of Install/Upgrade, both dry-run previews, and Run in Terminal so dry runs cannot silently write trust. Whole-tap trust stays in Manage Taps; per-package trust only.

Qualified names for third-party packages (brewIdentifier) fix wrong-core installs and stop formulae.brew.sh analytics from polluting tapped rows (usePackageDetail skips third-party). Tap package loading uses bisecting brew info batches so one broken name surfaces as “Won’t Load” instead of failing the list.

Docs/changelog/TODO updated; @raycast/api and lockfile deps bumped; vitest coverage for tap parsing and fetch.

Reviewed by Cursor Bugbot for commit 039a16e. Bugbot is set up for automated code reviews on this repo. Configure here.

- Merge branch \'contributions/merge-1790891007062\' into feature/third-party-taps
- Pull contributions
- chore(taps): changelog, README, Homebrew 6 add-tap wording
- feat: third-party taps
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: brew Issues related to the brew extension platform: macOS OP is contributor The OP of the PR is a contributor of the extension labels Oct 1, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @nhojb @Aayush9029 @mathieudutour @urwrstkn8mare @ashokbaruaakas @MillerApps @pernielsentikaer @jfkisafk @vpukhanov @j3lte @alexander-cato @ViGeng @ridemountainpig @clins1994 @alexibuild you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="ext/brew"
FORK_URL="https://github.com/chrismessina/extensions.git"
EXTENSION_NAME="brew"
REPO_NAME="extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

- Merge branch \'feature/third-party-taps\' of /Users/messina/Developer/GitHub/chrismessina/brew into feature/third-party-taps
- chore(deps): brace-expansion 5.0.12, @raycast/api 2.6.0
- Merge branch \'feature/third-party-taps\' of /Users/messina/Developer/GitHub/chrismessina/brew into feature/third-party-taps
- fix(search): format section counts in the user\'s locale
@chrismessina
chrismessina marked this pull request as ready for review October 1, 2026 22:08
@0xdhrv 0xdhrv self-assigned this Oct 2, 2026

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 57a04ad into raycast:main Oct 2, 2026
2 checks passed
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 039a16e. Configure here.

},
});
if (ok) onDone();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Untap skips promised package uninstalls

High Severity

Remove Tap tells the user that installed packages from the tap will be uninstalled first, but the only command that runs is brew untap --force. That removes the tap and leaves those packages installed as orphans, so the confirmed uninstall never happens.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 039a16e. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Partly right, and it depends on the Homebrew version. From Homebrew 6.0.13 (c1feb84ef4, 2026-07-23), brew untap --force uninstalls the tap's formulae and casks before untapping (cmd/untap.rb), so the confirmation was accurate there. On 6.0.0–6.0.12, which this extension still supports, --force untapped and left the packages installed, as you describe.

Fixed in #31853. Remove Tap no longer uses --force. It runs brew uninstall --cask …, then brew uninstall --formula …, then a plain brew untap, and stops at the first failure, so the confirmation holds on every version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Being addressed in #31853

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

Labels

extension: brew Issues related to the brew extension extension fix / improvement Label for PRs with extension's fix improvements OP is contributor The OP of the PR is a contributor of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants