method
attempt_to_activate
v2_6_3 -
Show latest stable
- Class:
Bundler::Molinillo::Resolver::Resolution
attempt_to_activate()private
Attempts to activate the current {#possibility} @return [void]
# File lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb, line 668
def attempt_to_activate
debug(depth) { 'Attempting to activate ' + possibility.to_s }
existing_vertex = activated.vertex_named(name)
if existing_vertex.payload
debug(depth) { "Found existing spec (#{existing_vertex.payload})" }
attempt_to_filter_existing_spec(existing_vertex)
else
latest = possibility.latest_version
# use reject!(!satisfied) for 1.8.7 compatibility
possibility.possibilities.reject! do |possibility|
!requirement_satisfied_by?(requirement, activated, possibility)
end
if possibility.latest_version.nil?
# ensure there's a possibility for better error messages
possibility.possibilities << latest if latest
create_conflict
unwind_for_conflict
else
activate_new_spec
end
end
end Related methods
- Instance methods
- resolve
- Class methods
- new
- Private methods
-
activate_new_spec -
attempt_to_activate -
attempt_to_filter_existing_spec -
binding_requirement_in_set? -
binding_requirements_for_conflict -
build_details_for_unwind -
conflict_fixing_possibilities? -
create_conflict -
debug -
end_resolution -
filter_possibilities_after_unwind -
filter_possibilities_for_parent_unwind -
filter_possibilities_for_primary_unwind -
filtered_possibility_set -
find_state_for -
group_possibilities -
handle_missing_or_push_dependency_state -
indicate_progress -
initial_state -
locked_requirement_named -
locked_requirement_possibility_set -
parent_of -
possibilities_for_requirement -
possibility -
possibility_satisfies_requirements? -
process_topmost_state -
push_state_for_requirements -
raise_error_unless_state -
require_nested_dependencies_for -
requirement_for_existing_name -
requirement_tree_for -
requirement_trees -
resolve_activated_specs -
start_resolution -
state -
unwind_for_conflict -
unwind_options_for_requirements