Skip to content

which-formula: port to Ruby and mark install status#22303

Closed
HaraldNordgren wants to merge 1 commit into
Homebrew:mainfrom
HaraldNordgren:which_binaries
Closed

which-formula: port to Ruby and mark install status#22303
HaraldNordgren wants to merge 1 commit into
Homebrew:mainfrom
HaraldNordgren:which_binaries

Conversation

@HaraldNordgren

@HaraldNordgren HaraldNordgren commented May 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #22282.

Make which-formula show more useful info about a binary:

  • Install markers for formulae
  • PATH shadowing
  • (Rewrote in Ruby to access helpers)
❯ brew which-formula clang
==> clang
llvm ✔
llvm@14 ✘
llvm@15 ✘
llvm@16 ✘
llvm@17 ✘
llvm@18 ✘
llvm@19 ✘
llvm@20 ✔
llvm@21 ✘
metashell ✘
Warning: clang is shadowed by /usr/bin/clang earlier in your PATH.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them? Performance claims (e.g. "this is faster") must include Hyperfine benchmarks.
  • Have you written new tests (excluding integration tests) for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR.

Claud Code, Extra High


@HaraldNordgren HaraldNordgren marked this pull request as draft May 16, 2026 17:14
@MikeMcQuaid

Copy link
Copy Markdown
Member

Already open PR implementing this in #22300

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.

which-formula: show installation status

2 participants