Merge pull request #6578 from dawidd6/audit-uses-from-macos
audit: replace depends_on with uses_from_macos
This commit is contained in:
commit
a1a0569f75
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user