From b32296a7e070932810474afc46219d7377be5cb1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 28 Aug 2025 16:41:50 +0100 Subject: [PATCH] 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. --- Library/Homebrew/bundle/tap_installer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/bundle/tap_installer.rb b/Library/Homebrew/bundle/tap_installer.rb index 7989a42f2b..42e425fee7 100644 --- a/Library/Homebrew/bundle/tap_installer.rb +++ b/Library/Homebrew/bundle/tap_installer.rb @@ -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:)