Browse Source

rebar_deps: fix Dialyzer warning

pull/3/head
Tuncer Ayaz 11 years ago
parent
commit
6518b5f541
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      src/rebar_deps.erl

+ 9
- 9
src/rebar_deps.erl View File

@ -187,15 +187,15 @@ do_check_deps(Config) ->
DepOwners = rebar_config:get(Config2, depowner, dict:new()),
%% check for conflicting deps
[?ERROR("Conflicting dependencies for ~p: ~p~n", [K,
[{"From: " ++ string:join(dict:fetch(D,
DepOwners),
", "),
{D#dep.vsn_regex,
D#dep.source}} || D <- V]]) ||
{K, V} <- dict:to_list(lists:foldl(fun(Dep, Acc) ->
dict:append(Dep#dep.app, Dep, Acc)
end, dict:new(), UpdatedDeps)), length(V) > 1],
_ = [?ERROR("Conflicting dependencies for ~p: ~p~n",
[K, [{"From: " ++ string:join(dict:fetch(D, DepOwners), ", "),
{D#dep.vsn_regex, D#dep.source}} || D <- V]])
|| {K, V} <- dict:to_list(
lists:foldl(
fun(Dep, Acc) ->
dict:append(Dep#dep.app, Dep, Acc)
end, dict:new(), UpdatedDeps)),
length(V) > 1],
%% Add each updated dep to our list of dirs for post-processing. This yields
%% the necessary transitivity of the deps

Loading…
Cancel
Save