diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 0392b11e7e..e86f600efd 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -1,6 +1,7 @@ # typed: false # frozen_string_literal: true +require "deprecate_disable" require "formula_text_auditor" require "resource_auditor" @@ -325,6 +326,11 @@ module Homebrew return if version_conflicts.empty? + return if formula.disabled? + + return if formula.deprecated? && + formula.deprecation_reason != DeprecateDisable::DEPRECATE_DISABLE_REASONS[:versioned_formula] + problem <<~EOS #{formula.full_name} contains conflicting version recursive dependencies: #{version_conflicts.to_a.join ", "}