class Bundler::Molinillo::Resolver::Resolution::UnwindDetails

def sub_dependencies_to_avoid

Returns:
  • (Array) - array of sub-dependencies to avoid when choosing a
def sub_dependencies_to_avoid
  @requirements_to_avoid ||=
    requirement_trees.map do |tree|
      index = tree.index(state_requirement)
      tree[index + 1] if index
    end.compact
end