linkage_checker: exclude test deps from being considered runtime dep

This commit is contained in:
Michael Cho 2024-09-07 13:16:50 -04:00
parent 9978c3d11a
commit 49fbf01a44
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -196,7 +196,7 @@ class LinkageChecker
def check_formula_deps
filter_out = proc do |dep|
next true if dep.build?
next true if dep.build? || dep.test?
(dep.optional? || dep.recommended?) && formula.build.without?(dep)
end