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

Warning: Calling brew list to only list formulae is deprecated! Use brew list --formula instead. #5007

Closed
mcandre opened this issue Nov 23, 2020 · 9 comments · Fixed by #4995

Comments

@mcandre
Copy link

mcandre commented Nov 23, 2020

Homebrew has deprecated the old CLI convention. Please make sure to supply the --formula flag where appropriate.

@pkuczynski
Copy link
Member

I am on Big Sur with brew 2.5.11 and it does not display any warning when I call brew list. Can you please elaborate which command displays deprecation notice for you?

@hectorbus
Copy link

Trying to install ruby version 2.6.5 I got the same message.

Warning: Calling 'brew list' to only list formulae is deprecated! Use 'brew list --formula' instead.

@pkuczynski
Copy link
Member

Which version of macOS and brew do you have?

@hectorbus
Copy link

Which version of macOS and brew do you have?

Homebrew 2.5.11
macOS Mojave 10.14.6

@Kevincible
Copy link

Same here.
macOS Big Sur Version 11.0.1

$ brew -v
Homebrew 2.5.11
Homebrew/homebrew-core (git revision ee173; last commit 2020-11-24)
Homebrew/homebrew-cask (git revision c70c3; last commit 2020-11-24)

$ rvm -v
rvm 1.29.10 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

$ rvm reinstall 2.7
ruby-2.7.0 - #removing src/ruby-2.7.0 - please wait
ruby-2.7.0 - #removing rubies/ruby-2.7.0 - please wait
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/11.0/x86_64/ruby-2.7.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/username/.rvm/rubies/ruby-2.7.0, this may take a while depending on your cpu(s)...
ruby-2.7.0 - #downloading ruby-2.7.0, this may take a while depending on your connection...
ruby-2.7.0 - #extracting ruby-2.7.0 to /Users/username/.rvm/src/ruby-2.7.0 - please wait
ruby-2.7.0 - #configuring - please wait
ruby-2.7.0 - #post-configuration - please wait
ruby-2.7.0 - #compiling - please wait
....

@Kevincible
Copy link

However directly calling brew list won't emit the warning

@dshevtsov
Copy link

Same on macOS Catalina 10.15.7 with Homebrew 2.5.11 when running

$ \curl -sSL https://get.rvm.io | bash -s stable --ruby

@havenwood
Copy link
Member

A fix is being worked on in #4995.

@pkuczynski
Copy link
Member

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants