From 8aaff65d6bdd3a6d5f08d7d79fe9d5018d09b61b Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Thu, 9 Jul 2015 14:29:01 -0500 Subject: bug fix: was using outer LevelsAcc variable in inner foldl --- src/rebar_digraph.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rebar_digraph.erl') diff --git a/src/rebar_digraph.erl b/src/rebar_digraph.erl index d52a811..a9c1cbb 100644 --- a/src/rebar_digraph.erl +++ b/src/rebar_digraph.erl @@ -91,9 +91,9 @@ cull_deps(Graph, Vertices, Level, Levels, Solution, Discarded) -> lists:foldl(fun({Key, _}=N, {NewVertices1, SolutionAcc1, LevelsAcc1, DiscardedAcc1}) -> case dict:find(Key, SolutionAcc1) of {ok, N} -> % already seen - {NewVertices1, SolutionAcc1, LevelsAcc, DiscardedAcc1}; + {NewVertices1, SolutionAcc1, LevelsAcc1, DiscardedAcc1}; {ok, _} -> % conflict resolution! - {NewVertices1, SolutionAcc1, LevelsAcc, [N|DiscardedAcc1]}; + {NewVertices1, SolutionAcc1, LevelsAcc1, [N|DiscardedAcc1]}; error -> {[N | NewVertices1], dict:store(Key, N, SolutionAcc1), -- cgit v1.1