From 40cecdf8b4bf65b8b676ca380beb9da33cc7fe8a Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Fri, 8 Nov 2024 18:45:35 -0500 Subject: [PATCH] tap_auditor: check renamed formula exists --- Library/Homebrew/tap_auditor.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/tap_auditor.rb b/Library/Homebrew/tap_auditor.rb index 06bb454cd123e..a6fa8b307acb3 100644 --- a/Library/Homebrew/tap_auditor.rb +++ b/Library/Homebrew/tap_auditor.rb @@ -10,6 +10,7 @@ class TapAuditor sig { params(tap: Tap, strict: T.nilable(T::Boolean)).void } def initialize(tap, strict:) Homebrew.with_no_api_env do + tap.clear_cache if Homebrew::EnvConfig.automatically_set_no_install_from_api? @name = tap.name @path = tap.path @tap_audit_exceptions = tap.audit_exceptions @@ -54,6 +55,7 @@ def audit_tap_formula_lists check_formula_list_directory "style_exceptions", @tap_style_exceptions check_formula_list "pypi_formula_mappings", @tap_pypi_formula_mappings check_formula_list ".github/autobump.txt", @tap_autobump + check_formula_list "formula_renames", @formula_renames.values end sig { void }