Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferred sources come last in the list so we need to reverse #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

##### Bug Fixes

* None.
* Generation of filtered version of the existing vertex's `PossibilitySet` fixed,
so it takes into account the fact that vertices are sorted from ones with lower
priority to ones with higher priority when otherwise they are equal.
[Ilya Myakotin](https://github.com/rehsals)


## 0.8.0 (2021-08-09)
Expand Down
2 changes: 1 addition & 1 deletion lib/molinillo/resolution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ def attempt_to_filter_existing_spec(vertex)
# @param [Object] vertex existing vertex
# @return [PossibilitySet] filtered possibility set
def filtered_possibility_set(vertex)
PossibilitySet.new(vertex.payload.dependencies, vertex.payload.possibilities & possibility.possibilities)
PossibilitySet.new(vertex.payload.dependencies, (vertex.payload.possibilities.reverse & possibility.possibilities.reverse).reverse)
end

# @param [String] requirement_name the spec name to search for
Expand Down