audit: replace depends_on with uses_from_macos
This commit is contained in:
parent
e3cf9592d1
commit
86feb5a9de
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user