Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew can't see Formulas aliases if homebrew/core untapped #16682

Closed
3 tasks done
andreisidorenko opened this issue Feb 16, 2024 · 1 comment · Fixed by #16684 or #16688
Closed
3 tasks done

brew can't see Formulas aliases if homebrew/core untapped #16682

andreisidorenko opened this issue Feb 16, 2024 · 1 comment · Fixed by #16684 or #16688
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@andreisidorenko
Copy link

brew doctor output

> brew doctor
Your system is ready to brew.

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.2.8-125-ga6d539c-dirty
ORIGIN: https://github.com/Homebrew/brew
HEAD: a6d539cf11a0db5a2c0f6fb78ff1ed09bf576a93
Last commit: 17 minutes ago
Core tap HEAD: a44bd8e98ffee5f800a1c5c94532892ffdcfe822
Core tap last commit: 52 minutes ago
Core tap JSON: 16 Feb 10:14 UTC
Core cask tap HEAD: 2af3e89e4eed25531f6dbd7ded492e07ae50a7e9
Core cask tap last commit: 30 minutes ago
Core cask tap JSON: 16 Feb 10:14 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.1
Rosetta 2: false

What were you trying to do (and why)?

What happened (include all command output)?

No available formula with the name ... errors. Outputs examples:

❯ brew info [email protected]
Error: No available formula with the name "[email protected]". Did you mean [email protected], [email protected], [email protected], [email protected], [email protected] or [email protected]?
Command /opt/homebrew/bin/original-brew info [email protected] failed!
❯ brew install [email protected]
Warning: No available formula with the name "[email protected]". Did you mean [email protected], [email protected], [email protected], [email protected], [email protected] or [email protected]?
==> Searching for similarly named formulae and casks...
==> Formulae
[email protected][email protected]                   [email protected]                   [email protected]                   [email protected]                   [email protected]

To install [email protected] ✔, run:
  brew install [email protected] ✔
Command /opt/homebrew/bin/original-brew install [email protected] failed!
❯ brew info [email protected]
Error: No available formula with the name "[email protected]". Did you mean [email protected]?
Command /opt/homebrew/bin/original-brew info [email protected] failed!

What did you expect to happen?

Expected that formulas to be installed, as we have aliases for them.

Noticed that it happens if homebrew/cask tap is untapped (default behavior for brew > 4.0.0). If we have homebrew/cask tap - Aliases work as expected.

Step-by-step reproduction instructions (by running brew commands)

1. Ensure that `homebrew/cask` tap is not added with `brew tap` command (shouldn't be added by default).
2. Try to use any Formula Alias, for example `brew install [email protected]`
@andreisidorenko andreisidorenko added the bug Reproducible Homebrew/brew bug label Feb 16, 2024
@ZhongRuoyu
Copy link
Member

git bisect suggests that 4641690 is the first bad commit. CC @reitermarkus

@github-actions github-actions bot added the outdated PR was locked due to age label Mar 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age
Projects
None yet
2 participants