Skip to content

info: clarify same-named conflicts and shadowed formulae#22537

Open
HaraldNordgren wants to merge 2 commits into
Homebrew:mainfrom
HaraldNordgren:info-disambiguate-conflicts
Open

info: clarify same-named conflicts and shadowed formulae#22537
HaraldNordgren wants to merge 2 commits into
Homebrew:mainfrom
HaraldNordgren:info-disambiguate-conflicts

Conversation

@HaraldNordgren
Copy link
Copy Markdown
Contributor

@HaraldNordgren HaraldNordgren commented Jun 4, 2026

Remove the incorrect warning of, which I believe is a remnant of before Terraform was moved out our core:

Conflicts with:
  terraform
❯ brew info terraform
==> hashicorp/tap/terraform ↑: 1.9.7 → stable 1.15.5
Terraform
https://www.terraform.io/
Installed (on request)
From: https://github.com/hashicorp/homebrew-tap/blob/HEAD/Formula/terraform.rb
Tap: hashicorp/tap
==> Installed Kegs and Versions
hashicorp/tap/terraform ↑ 1.9.7 → 1.15.5 (5 files, 87.9MB) [Linked]

Clarify that shadowed pkg's install status and show "Installed Kegs and Versions" even when not real siblings if they occupy the same disk space:

❯ brew info weave
==> weave ↑: 0.1.6 → stable 0.2.7, HEAD
Warning: `weave` shadows `homebrew/core/weave`.
Entity-level semantic merge driver for Git — resolves conflicts by understanding code structure
https://github.com/Ataraxy-Labs/weave
Installed (on request)
From: https://github.com/ataraxy-labs/homebrew-tap/blob/HEAD/Formula/weave.rb
Tap: ataraxy-labs/tap
License: MIT OR Apache-2.0
==> Installed Kegs and Versions
ataraxy-labs/tap/weave ↑ 0.1.6 → 0.2.7 (11 files, 92.6MB) [Linked]

❯ brew info homebrew/core/weave
==> homebrew/core/weave ✘: stable 0.3.5 (bottled), HEAD
Entity-level semantic merge driver for Git using tree-sitter
https://github.com/Ataraxy-Labs/weave
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/w/weave.rb
License: MIT OR Apache-2.0
==> Installed Kegs and Versions
ataraxy-labs/tap/weave ↑ 0.1.6 → 0.2.7 (11 files, 92.6MB) [Linked]

  • 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


Resolve each conflict to its actual formula and show the resolved
full name, so a conflict that points to a formula in another tap is
unambiguous rather than a bare name. When a conflict resolves to the
formula itself (e.g. hashicorp/tap/terraform's `conflicts_with
"terraform"` after terraform left homebrew-core), omit it instead of
printing a confusing self-conflict.
When two taps provide a formula of the same name they share one
cellar rack, so only one can be installed at a time. Running
`brew info <tap>/<name>` on the formula that did NOT install the keg
previously showed that keg as this formula's install and `[Linked]`.

Now show such a formula by its full (tap-qualified) name, mark it not
installed, and list the shadowing formula's keg under "Installed Kegs
and Versions" so the actually-installed sibling is still visible.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Thanks for your pull request. This has been closed because it appears to use an incomplete or outdated pull request template.

Please edit this pull request to fill in the current pull request template. This workflow will reopen this pull request automatically once the template is complete. Do not open a new pull request for this.

@github-actions github-actions Bot closed this Jun 4, 2026
@github-actions github-actions Bot reopened this Jun 4, 2026
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.

1 participant