formula_cellar_checks: check unversioned name in universal_binary_allowlist

This will allow us to avoid having to list multiple formula versions in
the universal binary allowlist (e.g. for `llvm`).
This commit is contained in:
Carlo Cabrera 2025-08-22 17:52:18 +08:00 committed by Carlo Cabrera
parent aeb42b2614
commit 4a681717ce
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -371,7 +371,10 @@ module FormulaCellarChecks
mismatches = mismatches.to_h mismatches = mismatches.to_h
universal_binaries_expected = if (formula_tap = formula.tap).present? && formula_tap.core_tap? universal_binaries_expected = if (formula_tap = formula.tap).present? && formula_tap.core_tap?
formula_tap.audit_exception(:universal_binary_allowlist, formula.name) formula_name = formula.name
# Apply audit exception to versioned formulae too from the unversioned name.
formula_name.gsub!(/@\d+(\.\d+)*$/, "") if formula.versioned_formula?
formula_tap.audit_exception(:universal_binary_allowlist, formula_name)
else else
true true
end end