class Molinillo::Resolver::Resolution

def create_conflict

Returns:
  • (Conflict) - a {Conflict} that reflects the failure to activate
def create_conflict
  vertex = activated.vertex_named(name)
  requirements = {
    name_for_explicit_dependency_source => vertex.explicit_requirements,
    name_for_locking_dependency_source => Array(locked_requirement_named(name)),
  }
  vertex.incoming_edges.each { |edge| (requirements[edge.origin.payload] ||= []).unshift(edge.requirement) }
  conflicts[name] = Conflict.new(
    requirement,
    Hash[requirements.select { |_, r| !r.empty? }],
    vertex.payload,
    possibility,
    locked_requirement_named(name),
    requirement_trees,
    Hash[activated.map { |v| [v.name, v.payload] }.select(&:last)]
  )
end