Closed jwodder closed 10 months ago
Thanks @jwodder for the issue.
I agree that all the --eval-all
handling is a bit of a mess. I think ideally brew search
(and anything else) should only need --eval-all
when evaluating non-Homebrew organisation formulae and just default to core formulae by default.
If/when we're using the JSON API: it shouldn't be needed at all.
CC @Homebrew/maintainers and @Homebrew/security for any thoughts on how this should/should not be working to best balance security and usability.
Just noting that this does currently work only for casks if you also pass --cask
, so there's some inconsistency in the handling.
I agree that all the
--eval-all
handling is a bit of a mess. I think ideallybrew search
(and anything else) should only need--eval-all
when evaluating non-Homebrew organisation formulae and just default to core formulae by default.
Strongly agree with this.
Just noting that this does currently work only for casks if you also pass
--cask
, so there's some inconsistency in the handling.
@bevanjkay can you elaborate a bit more there, not sure I fully understand. Thanks ❤️
At present, if you run the command brew search --desc --eval-all test
you will see the error above.
However if you also pass the --cask
flag it will allow the search for casks only, without the error.
With --cask
you cannot search --desc
without --eval-all
, but adding the --eval-all
flag allows the search to succeed.
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I was trying to search through all available formulae using
brew desc --search
. The error message I got told me to use--eval-all
, so I did, but I still got an error unless I instead setHOMEBREW_EVAL_ALL=1
. Interestingly,--eval-all
does work when not using the--search
optionWhat happened (include all command output)?
What did you expect to happen?
brew desc --eval-all -s unicode
and other permutations (exceptbrew --eval-all desc -s ...
, I guess) should have succeeded.Step-by-step reproduction instructions (by running
brew
commands)