Skip to content

Conversation

@MikeMcQuaid
Copy link
Member

Fixes #21311

Copilot AI review requested due to automatic review settings December 23, 2025 11:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where brew bundle was attempting to fetch formulae from taps that weren't installed yet, causing the fetch operation to fail. The fix adds a check to skip fetching formulae/casks from taps that haven't been installed yet, allowing the tap to be installed first before attempting to fetch its packages.

Key Changes

  • Added tap_installed? helper method to check if a package's tap is currently installed
  • Modified fetchable_formulae_and_casks to skip packages from uninstalled taps
  • Added comprehensive test coverage for the new behavior

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Library/Homebrew/bundle/installer.rb Implements the tap_installed? helper method and adds checks to skip fetching packages from uninstalled taps
Library/Homebrew/test/bundle/installer_spec.rb Adds test for skipping fetch of untapped formulae and updates test setup to mock TapInstaller.installed_taps
Library/Homebrew/test/bundle/commands/install_spec.rb Updates test setup to mock TapInstaller.installed_taps for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 23, 2025
Merged via the queue into main with commit a0f882d Dec 23, 2025
62 of 63 checks passed
@MikeMcQuaid MikeMcQuaid deleted the bundle_fetch_tap_fix branch December 23, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

brew bundle behavior seems to have changed after using setup-homebrew action

3 participants