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

Verbose option stopped working (-v shows version, --verbose unknown command) #17240

Closed
3 tasks done
argamanza opened this issue May 6, 2024 · 3 comments · Fixed by #17244
Closed
3 tasks done

Verbose option stopped working (-v shows version, --verbose unknown command) #17240

argamanza opened this issue May 6, 2024 · 3 comments · Fixed by #17244
Assignees
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@argamanza
Copy link

brew doctor output

****************
I'm not able to fix the following dylibs issue since it's a work laptop and these are probably there as result of preinstalled security applications.
****************

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libMsgCom.dylib
  /usr/local/lib/libSysCtlCom.dylib
  /usr/local/lib/libwep_airdrop.dylib
  /usr/local/lib/libwep_burn.dylib
  /usr/local/lib/libwep_cbcarbon.dylib
  /usr/local/lib/libwep_cbcocoa.dylib
  /usr/local/lib/libwep_chrome.dylib
  /usr/local/lib/libwep_dutil.dylib
  /usr/local/lib/libwep_ff.dylib
  /usr/local/lib/libwep_icloud.dylib
  /usr/local/lib/libwep_mail.dylib
  /usr/local/lib/libwep_post.dylib
  /usr/local/lib/libwep_printer.dylib
  /usr/local/lib/libwep_screen.dylib

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.21
ORIGIN: https://github.com/Homebrew/brew
HEAD: 82c2e743a5bcea725f9ca1429e3e21c3088ff904
Last commit: 12 hours ago
Core tap JSON: 06 May 19:24 UTC
Core cask tap JSON: 06 May 19:24 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: dodeca-core 64-bit arm_lobos
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.4.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A
Rosetta 2: false

What were you trying to do (and why)?

Ran an alias that I periodically run, which resolves to brew -v update && brew -v upgrade && brew -v cleanup --prune=5
Then when I saw a weird behavior I ran brew -v update and brew --verbose update.

This behavior started today. As I mentioned this is an alias I run daily and it always worked until today.

What happened (include all command output)?

Instead of updating (or doing any other command I executed) it printed the version:

❯ brew -v update
Homebrew 4.2.21

❯ brew --verbose update
Error: Unknown command: --verbose

What did you expect to happen?

Running my command with verbose output.

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

Just run any command with `-v` or `--verbose` on latest version (4.2.21)
@argamanza argamanza added the bug Reproducible Homebrew/brew bug label May 6, 2024
@carlocab
Copy link
Member

carlocab commented May 6, 2024

Can't reproduce:

❯ brew --version
Homebrew 4.2.21
❯ brew -v update
Checking if we need to fetch /opt/homebrew...
==> Updating Homebrew...
Checking if we need to fetch /opt/homebrew/Library/Taps/carlocab/homebrew-personal...
Checking if we need to fetch /opt/homebrew/Library/Taps/homebrew/homebrew-aliases...
Checking if we need to fetch /opt/homebrew/Library/Taps/homebrew/homebrew-bundle...
Checking if we need to fetch /opt/homebrew/Library/Taps/homebrew/homebrew-cask-fonts...
Checking if we need to fetch /opt/homebrew/Library/Taps/homebrew/homebrew-services...
Fetching /opt/homebrew...
Checking if we need to fetch /opt/homebrew/Library/Taps/teamookla/homebrew-speedtest...
Fetching /opt/homebrew/Library/Taps/carlocab/homebrew-personal...
Checking if we need to fetch /opt/homebrew/Library/Taps/workbrew/homebrew-tap...
Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-aliases...
Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-bundle...
Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask-fonts...
Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-services...
Fetching /opt/homebrew/Library/Taps/workbrew/homebrew-tap...
Fetching /opt/homebrew/Library/Taps/teamookla/homebrew-speedtest...
Updating /opt/homebrew...
branch 'master' set up to track 'origin/master'.
Reset branch 'stable'
Current branch stable is up to date.
Checking if we need to fetch formula.jws.json...
Updated formula.jws.json.
Checking if we need to fetch cask.jws.json...
Updated cask.jws.json.
Checking if we need to fetch formula_tap_migrations.jws.json...
Checking if we need to fetch cask_tap_migrations.jws.json...
Already up-to-date.

@Bo98
Copy link
Member

Bo98 commented May 6, 2024

Likely caused by 97ad356 which changed the $* check to $1.

@MikeMcQuaid
Copy link
Member

❯ brew --verbose update
Error: Unknown command: --verbose

This is also the case in 4.2.19 and 4.2.20.

@MikeMcQuaid MikeMcQuaid self-assigned this May 7, 2024
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 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
Development

Successfully merging a pull request may close this issue.

4 participants