Repository navigation
Update brew extension - #31164
Merged
Merged
Update brew extension#31164
Conversation
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.
Description
Adds support for the features Homebrew 7 exposes, plus previews that let you see what a command would do before running it. Two new commands, five additions to existing ones, and a retrofit of some pre-existing issues in the extension.
Everything that needs Homebrew 7 sits behind a shared version gate, so a machine on Homebrew 6 gets an explanatory empty state with an Update Homebrew action rather than a failure. Every mutating action routes through one confirmation that shows the exact commands before running them.
New commands
brew vulns, severity-tinted, with per-advisory detail and an Upgrade action where the formula is also outdated. Requires Homebrew 7.brew doctorreport, with every command brew recommends runnable behind one confirmation. It keeps going after a failure and summarises what did not apply, rather than stopping at the first error. Remediations that needsudowork through the extension's existing askpass helper. Requires Homebrew 7.Additions to existing commands
brew install --dry-runorbrew upgrade --dry-runwould actually do. Preview Upgrades (⌘⇧I) in Show Upgrades does the same for everything outdated, with each package's download size, the total, and any warning brew raises. Each row deep-links to that package's details.Fixes to existing behaviour
Keyboard.Shortcut.Common.CopyNameresolves to ⌘⌥C, which collided with a hand-written ⌘⌥C in all four package action panels. The URL copies keep the constant; the command copies moved.Dependencies
stream-json1 → 3 andstream-chain3 → 4, which are ESM and resolve through theirexportsmaps, hence thetsconfigchange; type resolution only,ray buildstill emits CJS.vitest3 → 4. The chunked cache was rebuilt from scratch against the new stream-json and verified end to end.Credit
The upgrade-action changes are @nhojb's, from #31099, incorporated here with (soon) his knowledge; they are attributed in the CHANGELOG. If #31099 merges first, this branch rebases onto it.
Test suite is at 252, covering the new parsers against real captured
brewoutput.Checklist
npm run buildand tested this distribution build in Raycastnpm run lintandnpx tsc --noEmit— both cleanCHANGELOG.mdper the changelog conventions