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

Fix missing requires for tap-info command #17778

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Fix missing requires for tap-info command #17778

merged 2 commits into from
Jul 19, 2024

Commits on Jul 16, 2024

  1. Fix missing requires for tap-info command

    Previously, running `brew tap-info --installed --json` in a github
    actions linux runner would throw:
    
    ```
    Error: uninitialized constant Homebrew::API
    /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/tap.rb:1359:in `formula_names'
    /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/tap.rb:868:in `to_hash'
    /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/tap-info.rb:87:in `map'
    /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/tap-info.rb:87:in `print_tap_json'
    /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/tap-info.rb:37:in `run'
    /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
    ```
    
    After the setup steps:
    ```
        steps:
          - name: Set up Homebrew
            id: set-up-homebrew
            uses: Homebrew/actions/setup-homebrew@master
            with:
              token: ${{ github.token }}
    
          - name: Cache Homebrew Bundler RubyGems
            id: cache
            uses: actions/cache@v3
            with:
              path: ${{ steps.set-up-homebrew.outputs.gems-path }}
              key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
              restore-keys: ${{ runner.os }}-rubygems-
    
          - name: Install Homebrew Bundler RubyGems
            if: steps.cache.outputs.cache-hit != 'true'
            run: brew install-bundler-gems
    ```
    kmontag committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    74a84a0 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    06a50ea View commit details
    Browse the repository at this point in the history