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:
parent
f6ce120b40
commit
b32296a7e0
@ -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:)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user