diagnostic: skip duplicate formulae and casks check inside test-bot.

This makes the experience nicer for tap maintainers who may want to do
this but without hiding the actual warnings for users.
This commit is contained in:
Mike McQuaid 2025-02-19 08:38:31 +00:00
parent a496f4eecf
commit 7d41a93c76
No known key found for this signature in database

View File

@ -1045,6 +1045,8 @@ module Homebrew
end
def check_for_duplicate_formulae
return if ENV["HOMEBREW_TEST_BOT"].present?
core_formula_names = CoreTap.instance.formula_names
shadowed_formula_full_names = non_core_taps.flat_map do |tap|
tap_formula_names = tap.formula_names.map { |s| s.delete_prefix("#{tap.name}/") }
@ -1060,6 +1062,8 @@ module Homebrew
end
def check_for_duplicate_casks
return if ENV["HOMEBREW_TEST_BOT"].present?
core_cask_names = CoreCaskTap.instance.cask_tokens
shadowed_cask_full_names = non_core_taps.flat_map do |tap|
tap_cask_names = tap.cask_tokens.map { |s| s.delete_prefix("#{tap.name}/") }