Merge pull request #15649 from Bo98/uses_from_macos-audit-fix

formula_auditor: fix macOS system dependency false positive
This commit is contained in:
Bo Anderson 2023-07-09 15:25:17 +01:00 committed by GitHub
commit 5b30de880d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,6 +277,7 @@ module Homebrew
if @core_tap && if @core_tap &&
@new_formula && @new_formula &&
!dep.uses_from_macos? &&
dep_f.keg_only? && dep_f.keg_only? &&
dep_f.keg_only_reason.provided_by_macos? && dep_f.keg_only_reason.provided_by_macos? &&
dep_f.keg_only_reason.applicable? && dep_f.keg_only_reason.applicable? &&