formula auditor: skip uses_from_macos audit for linux-only formula

This commit is contained in:
Michka Popoff 2021-04-08 22:58:13 +02:00
parent 330158ba10
commit 3714ebd06d
No known key found for this signature in database
GPG Key ID: 033D03F151030611

View File

@ -233,6 +233,7 @@ module Homebrew
dep_f.keg_only? &&
dep_f.keg_only_reason.provided_by_macos? &&
dep_f.keg_only_reason.applicable? &&
formula.requirements.none?(LinuxRequirement) &&
!tap_audit_exception(:provided_by_macos_depends_on_allowlist, dep.name)
new_formula_problem(
"Dependency '#{dep.name}' is provided by macOS; " \