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

View File

@ -316,7 +316,7 @@ module Homebrew
fa.audit_deps fa.audit_deps
end 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 end
end end