Merge pull request #16182 from Bo98/formula_auditor-nil-tap

formula_auditor: handle nil tap
This commit is contained in:
Bo Anderson 2023-11-05 01:14:02 +00:00 committed by GitHub
commit 930f24b63f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,7 +318,11 @@ module Homebrew
next unless @core_tap
unless dep_f.tap.core_tap?
if dep_f.tap.nil?
problem <<~EOS
Dependency '#{dep.name}' does not exist in any tap.
EOS
elsif !dep_f.tap.core_tap?
problem <<~EOS
Dependency '#{dep.name}' is not in homebrew/core. Formulae in homebrew/core
should not have dependencies in external taps.