Repository navigation
Update brew extension - #31820
Update brew extension#31820
Conversation
- 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
|
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 commandsBRANCH="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 devWe'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
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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(); | ||
| } |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 039a16e. Configure here.
There was a problem hiding this comment.
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.


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.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(oruser/repo <url>for a repository not namedhomebrew-…) offers to add it.A tap that only adds
brewcommands 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 upgradeskips 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.mdunder "Third-party taps and trust". Tested hands-on by adding and installing fromjundot/omlx(a repository not namedhomebrew-…) andsteipete/tap. 412 unit tests;tsc,ray lintandray buildare clean.Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolderNote
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 trustmodel: 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 pasteduser/repo/nameor install-page line after one confirmation (tap → trust one package → install).Trust is explicit before named brew commands.
ensureTrustedruns 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 (usePackageDetailskips third-party). Tap package loading uses bisectingbrew infobatches so one broken name surfaces as “Won’t Load” instead of failing the list.Docs/changelog/TODO updated;
@raycast/apiand 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.