bundle/tap_installer: add force flag for official taps for developers.

This avoids a `homebrew/core` in a `Brewfile` failing for Homebrew
developers who probably want it.
This commit is contained in:
Mike McQuaid 2025-08-28 16:41:50 +01:00
parent f6ce120b40
commit b32296a7e0
No known key found for this signature in database

View File

@ -18,7 +18,8 @@ module Homebrew
puts "Installing #{name} tap. It is not currently installed." if verbose
args = []
args << "--force" if force
official_tap = name.downcase.start_with? "homebrew/"
args << "--force" if force || (official_tap && Homebrew::EnvConfig.developer?)
success = if options[:clone_target]
Bundle.brew("tap", name, options[:clone_target], *args, verbose:)