Merge pull request #16182 from Bo98/formula_auditor-nil-tap
formula_auditor: handle nil tap
This commit is contained in:
commit
930f24b63f
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user