formula_auditor: check disabled formulae have disabled dependents
This commit is contained in:
parent
4054ab6560
commit
0c9444a227
@ -322,6 +322,13 @@ module Homebrew
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if dep_f.disabled? && !formula.disabled?
|
||||||
|
problem <<~EOS
|
||||||
|
Dependency '#{dep.name}' is disabled but has un-disabled dependents. Either
|
||||||
|
un-disable '#{dep.name}' or disable it and all of its dependents.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
|
||||||
# we want to allow uses_from_macos for aliases but not bare dependencies
|
# we want to allow uses_from_macos for aliases but not bare dependencies
|
||||||
if self.class.aliases.include?(dep.name) && !dep.uses_from_macos?
|
if self.class.aliases.include?(dep.name) && !dep.uses_from_macos?
|
||||||
problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'."
|
problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user