audit: whitelist bash-completion@* to use conflicts_with
this is necessary because they install conflicting scripts into HOMEBREW_PREFIX/etc/profile.d
This commit is contained in:
parent
43bfaa19f1
commit
4e50562424
@ -532,8 +532,11 @@ class FormulaAuditor
|
||||
end
|
||||
end
|
||||
|
||||
versioned_conflicts_whitelist = %w[node@ bash-completion@]
|
||||
|
||||
return unless formula.conflicts.any? && formula.versioned_formula?
|
||||
return if formula.name.start_with? "node@"
|
||||
versioned_conflicts_whitelist.each { |c|
|
||||
return if formula.name.start_with? c }
|
||||
problem <<-EOS
|
||||
Versioned formulae should not use `conflicts_with`.
|
||||
Use `keg_only :versioned_formula` instead.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user