Exception: CyclicDependencyError Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Raised when one or more formulae have cyclic dependencies.
Instance Method Summary collapse
-
#initialize(strongly_connected_components) ⇒ CyclicDependencyError
constructor
private
A new instance of CyclicDependencyError.
Constructor Details
#initialize(strongly_connected_components) ⇒ CyclicDependencyError
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns a new instance of CyclicDependencyError.
783 784 785 786 787 788 |
# File 'exceptions.rb', line 783 def initialize(strongly_connected_components) super <<~EOS The following packages contain cyclic dependencies: #{strongly_connected_components.select { |packages| packages.count > 1 }.map(&:to_sentence).join("\n ")} EOS end |