Method: Bundler::Molinillo::Resolver::Resolution::UnwindDetails#sub_dependencies_to_avoid

Defined in:
lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb

#sub_dependencies_to_avoidArray

Returns array of sub-dependencies to avoid when choosing a new possibility for the state we’ve unwound to. Only relevant for non-primary unwinds.

Returns:

  • (Array)

    array of sub-dependencies to avoid when choosing a new possibility for the state we’ve unwound to. Only relevant for non-primary unwinds



116
117
118
119
120
121
122
# File 'lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb', line 116

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