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 ls php --versions no longer works #9037

Closed
3 tasks done
aubreypwd opened this issue Nov 3, 2020 · 1 comment · Fixed by #9038
Closed
3 tasks done

brew ls php --versions no longer works #9037

aubreypwd opened this issue Nov 3, 2020 · 1 comment · Fixed by #9038
Assignees
Labels
outdated PR was locked due to age

Comments

@aubreypwd
Copy link

Bug report

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

Run brew ls php --versions to get a list of versions I have installed, which previously worked.

What happened (include command output)

I get an Error: Invalid usage: versionscannot be passed withoutformula.

Command output

❯ brew ls php --versions
Usage: brew list, ls [options] [formula|cask]

List all installed formulae or casks

If formula is provided, summarise the paths within its current keg.

  --formula, --formulae        List only formulae. This is the default
                               action on non TTY.
  --cask, --casks              List only casks, or cask if provided.
  --unbrewed                   List files in Homebrew's prefix not
                               installed by Homebrew.
  --full-name                  Print formulae with fully-qualified names.
                               If --full-name is not passed, other
                               options (i.e. -1, -l, -r and -t)
                               are passed to ls(1) which produces the
                               actual output.
  --versions                   Show the version number for installed
                               formulae, or only the specified formulae if
                               formula are provided.
  --multiple                   Only show formulae with multiple versions
                               installed.
  --pinned                     Show the versions of pinned formulae, or
                               only the specified (pinned) formulae if
                               formula are provided. See also pin,
                               unpin.

-1 Force output to be one entry per line. This
is the default when output is not to a
terminal.
-l List formulae in long format. If the output
is to a terminal, a total sum for all the
file sizes is printed before the long
listing.
-r Reverse the order of the formulae sort to
list the oldest entries first.
-t Sort formulae by time modified, listing
most recently modified first.
-d, --debug Display any debugging information.
-q, --quiet Suppress any warnings.
-v, --verbose Make some output more verbose.
-h, --help Show this message.

Error: Invalid usage: versions cannot be passed without formula.

What you expected to happen

Get a list of versions of php I had installed.

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

❯ brew --version
Homebrew 2.5.8-58-gdbdf7cf
Homebrew/homebrew-core (git revision 576f03; last commit 2020-11-03)
Homebrew/homebrew-cask (git revision cd56b; last commit 2020-11-03)

❯ brew ls php --versions
Usage: brew list, ls [options] [formula|cask]

List all installed formulae or casks

If formula is provided, summarise the paths within its current keg.

      --formula, --formulae        List only formulae. This is the default
                                   action on non TTY.
      --cask, --casks              List only casks, or cask if provided.
      --unbrewed                   List files in Homebrew's prefix not
                                   installed by Homebrew.
      --full-name                  Print formulae with fully-qualified names.
                                   If --full-name is not passed, other
                                   options (i.e. -1, -l, -r and -t)
                                   are passed to ls(1) which produces the
                                   actual output.
      --versions                   Show the version number for installed
                                   formulae, or only the specified formulae if
                                   formula are provided.
      --multiple                   Only show formulae with multiple versions
                                   installed.
      --pinned                     Show the versions of pinned formulae, or
                                   only the specified (pinned) formulae if
                                   formula are provided. See also pin,
                                   unpin.
  -1                               Force output to be one entry per line. This
                                   is the default when output is not to a
                                   terminal.
  -l                               List formulae in long format. If the output
                                   is to a terminal, a total sum for all the
                                   file sizes is printed before the long
                                   listing.
  -r                               Reverse the order of the formulae sort to
                                   list the oldest entries first.
  -t                               Sort formulae by time modified, listing
                                   most recently modified first.
  -d, --debug                      Display any debugging information.
  -q, --quiet                      Suppress any warnings.
  -v, --verbose                    Make some output more verbose.
  -h, --help                       Show this message.

Error: Invalid usage: `versions` cannot be passed without `formula`.

As far as I can tell I am supplying the formula, e.g. php. Also tried with node and other items too, same thing.

Output of brew config and brew doctor commands

❯ brew config
HOMEBREW_VERSION: 2.5.8-58-gdbdf7cf
ORIGIN: https://github.com/Homebrew/brew
HEAD: dbdf7cf2658975b25e3d2422b89ca5c4469f51f3
Last commit: 77 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 576f03c5cf69d012d031acdf1642284370477bc7
Core tap last commit: 20 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 12.0 build 1200
Git: 2.29.2 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.1.0.0.1.1602137645
Xcode: N/A
```

❯ brew doctor
Your system is ready to brew.

Also tried brew php ls --versions, brew ls --versions php, same thing. Obviously brew php ls --versions won't work.

@aubreypwd
Copy link
Author

❯ brew update
Updated Homebrew from dbdf7cf26 to 4a505fce3.
Updated 2 taps (homebrew/cask-versions and homebrew/cask).
==> Updated Casks
anydo                  grandtotal             missive                ridibooks
bluejeans              insync                 mochi                  slite
brave-browser-dev      jabt-flow              postman                visual-paradigm
clockify               keysmith               protopie               visual-paradigm-ce
discord-canary         microsoft-edge-beta    querious               vivaldi

❯ brew ls php --versions
php 7.4.12

Confirmed working, thankyou!

@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Dec 3, 2020
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants