New allow list: mismatched_binary_allowlist

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2021-08-11 18:09:26 +09:00
parent 79655bfd7f
commit f63c3b08fe
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A

View File

@ -338,9 +338,12 @@ module FormulaCellarChecks
end
return if mismatches.empty? && universal_binaries_expected
mismatches_expected = formula.tap.blank? || tap_audit_exception(:mismatched_binary_allowlist, formula.name)
return if compatible_universal_binaries.empty? && mismatches_expected
s = ""
if mismatches.present?
if mismatches.present? && !mismatches_expected
s += <<~EOS
Binaries built for a non-native architecture were installed into #{formula}'s prefix.
The offending files are: