Skip to content

Commit f8ec837

Browse files
committed
bundle: auto-tap formulae or casks in brew bundle
When you `brew install org/tap/formula-name`, it automatically taps the repo if not present. However `brew bundle` doesn't do this. This changes `brew bundle install` to work the same way as `brew install`.
1 parent 07a6ad0 commit f8ec837

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Library/Homebrew/bundle/formula_installer.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def install!(preinstall: true, no_upgrade: false, verbose: false, force: false)
7777
end
7878

7979
def install_change_state!(no_upgrade:, verbose:, force:)
80+
if (tap_with_name = Tap.with_formula_name(@full_name))
81+
tap, = tap_with_name
82+
tap.ensure_installed!
83+
end
84+
8085
return false unless resolve_conflicts!(verbose:)
8186

8287
if installed?

0 commit comments

Comments
 (0)