Merge pull request #20596 from Homebrew/tap_installer_force

bundle/tap_installer: add force flag for official taps for developers.
This commit is contained in:
Mike McQuaid 2025-08-28 16:28:04 +00:00 committed by GitHub
commit 9aa286faa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,8 @@ module Homebrew
puts "Installing #{name} tap. It is not currently installed." if verbose puts "Installing #{name} tap. It is not currently installed." if verbose
args = [] 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] success = if options[:clone_target]
Bundle.brew("tap", name, options[:clone_target], *args, verbose:) Bundle.brew("tap", name, options[:clone_target], *args, verbose:)