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 uses --installed causes error about appdir #10906

Closed
1 task done
wickles opened this issue Mar 22, 2021 · 2 comments · Fixed by #10908
Closed
1 task done

brew uses --installed causes error about appdir #10906

wickles opened this issue Mar 22, 2021 · 2 comments · Fixed by #10908
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@wickles
Copy link
Contributor

wickles commented Mar 22, 2021

brew config output

> % brew config
HOMEBREW_VERSION: 3.0.8-10-g555e936
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 555e9365f913b4099a036cd889e27a4d28b6a580
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 29a6d7d9c921dafaf2ff595655df391993ea69c2
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.zonYmET1lo/org.xquartz:0
HOMEBREW_EDITOR: vim
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit haswell
Clang: 12.0 build 1200
Git: 2.31.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A

brew doctor output

> % brew doctor
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: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  archivemount

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /usr/local/pspdev/bin/psp-config

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  qt
  glew

Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting your PATH for example like so:
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

  • The brew doctor above contains no "Warning" lines.

What were you trying to do (and why)?

Check which installed formulae use a formula, so I can deal with the results.

A few warnings exist in my brew doctor but do not appear to be pertinent.

What happened (include all command output)?

brew uses <formula> works as expected. brew uses --installed <formula> produces an error.

> % brew uses xmlto
shared-mime-info
> % brew uses --installed xmlto
Error: CLI arg for `appdir` is not declared for this command
Please report this issue:
  https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Homebrew/cli/args.rb:147:in `method_missing'
/usr/local/Homebrew/Library/Homebrew/cask/config.rb:45:in `from_args'
/usr/local/Homebrew/Library/Homebrew/cmd/uses.rb:96:in `intersection_of_dependents'
/usr/local/Homebrew/Library/Homebrew/cmd/uses.rb:74:in `uses'
/usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `<main>'

What did you expect to happen?

It work; not error.

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

brew uses --installed <formula>
@wickles wickles added the bug Reproducible Homebrew/brew bug label Mar 22, 2021
@carlocab
Copy link
Member

Should've been fixed in #10905 and/or #10904. Do brew update and try again. We can re-open this if that doesn't work.

@carlocab
Copy link
Member

Actually, no, sorry. It hasn't been fixed by that. @Bo98

@carlocab carlocab reopened this Mar 22, 2021
carlocab added a commit to carlocab/brew that referenced this issue Mar 22, 2021
Bo98 added a commit to Bo98/brew that referenced this issue Mar 22, 2021
@github-actions github-actions bot added the outdated PR was locked due to age label Apr 22, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2021
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