Skip to content

Commit

Permalink
Backtrack yourself before parents
Browse files Browse the repository at this point in the history
This change was left over after we reverted exploring all possible resolver solutions.
  • Loading branch information
ericmj committed Jun 26, 2019
1 parent d1a9d34 commit bff3150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hex/resolver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule Hex.Resolver do

not version_match?(version, req) ->
Backtracks.add(info(info, :backtracks), repo, name, version, parents)
backtrack_parents([parent], info, activated) || backtrack(name, info, activated)
backtrack(name, info, activated) || backtrack_parents([parent], info, activated)

true ->
activated = Map.put(activated, name, active)
Expand Down

0 comments on commit bff3150

Please sign in to comment.