Merge pull request #6578 from dawidd6/audit-uses-from-macos

audit: replace depends_on with uses_from_macos
This commit is contained in:
Mike McQuaid 2019-10-10 19:20:17 +01:00 committed by GitHub
commit a1a0569f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -394,8 +394,8 @@ module Homebrew
dep_f.keg_only_reason.valid? &&
!%w[apr apr-util openblas openssl openssl@1.1].include?(dep.name)
new_formula_problem(
"Dependency '#{dep.name}' may be unnecessary as it is provided " \
"by macOS; try to build this formula without it.",
"Dependency '#{dep.name}' is provided by macOS; " \
"please replace 'depends_on' with 'uses_from_macos'.",
)
end

View File

@ -316,7 +316,7 @@ module Homebrew
fa.audit_deps
end
its(:new_formula_problems) { are_expected.to match([/unnecessary/]) }
its(:new_formula_problems) { are_expected.to match([/is provided by macOS/]) }
end
end
end