New allow list: mismatched_binary_allowlist
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
79655bfd7f
commit
f63c3b08fe
@ -338,9 +338,12 @@ module FormulaCellarChecks
|
|||||||
end
|
end
|
||||||
return if mismatches.empty? && universal_binaries_expected
|
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 = ""
|
s = ""
|
||||||
|
|
||||||
if mismatches.present?
|
if mismatches.present? && !mismatches_expected
|
||||||
s += <<~EOS
|
s += <<~EOS
|
||||||
Binaries built for a non-native architecture were installed into #{formula}'s prefix.
|
Binaries built for a non-native architecture were installed into #{formula}'s prefix.
|
||||||
The offending files are:
|
The offending files are:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user