类 Gem::Molinillo::CircularDependencyError

尝试满足循环依赖关系时发生的错误

@note 仅当将 {Vertex} 添加到

{DependencyGraph} that has a {DependencyGraph::Vertex#path_to?} an
existing {DependencyGraph::Vertex}

属性

dependencies[R]
Set<Object>

导致此错误的依赖关系

公共类方法

new(vertices) 点击以切换源代码

使用给定的循环顶点初始化一个新错误。@param [Array<DependencyGraph::Vertex>] vertices 依赖关系中的顶点

that caused the error
调用父类方法
# File rubygems/vendor/molinillo/lib/molinillo/errors.rb, line 47
def initialize(vertices)
  super "There is a circular dependency between #{vertices.map(&:name).join(' and ')}"
  @dependencies = vertices.map { |vertex| vertex.payload.possibilities.last }.to_set
end