From 79441447f8ee153adcdaebb7325e05516914c784 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sun, 5 Nov 2023 00:57:33 +0000 Subject: [PATCH] formula_auditor: handle nil tap --- Library/Homebrew/formula_auditor.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 51a72b1c41..d0eb413d0c 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -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.