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

Only brew desc --search needs --eval-all #17102

Merged
merged 1 commit into from
Apr 18, 2024

Commits on Apr 17, 2024

  1. Only brew desc --search needs --eval-all

    - It was suggested in https://github.com/Homebrew/brew/issues/ 16733 that
      `brew desc <formula_or_cask>` should work like `brew info <formula_or_cask>`
      and print the description of the package without needing `--eval-all`.
    - Looking at the code, it seems like it's only searching that needs
      `--eval-all`, so limit the check to that.
    
    Before:
    
    ```shell
    $ brew desc hello
    Error: `brew desc` needs `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!
    ```
    
    After:
    
    ```shell
    $ brew desc hello
    hello: Program providing model for GNU coding standards and practices
    
    $ brew desc --search hello
    Error: Invalid usage: `brew desc --search` needs `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!
    
    $ brew desc --search --eval-all hello
    ==> Formulae
    dsh: Dancer's shell, or distributed shell
    hello: Program providing model for GNU coding standards and practices
    ```
    issyl0 committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    69c31d2 View commit details
    Browse the repository at this point in the history