mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
rebar_deps: fix Dialyzer warning
This commit is contained in:
parent
348d13b064
commit
6518b5f541
1 changed files with 9 additions and 9 deletions
|
@ -187,15 +187,15 @@ do_check_deps(Config) ->
|
||||||
DepOwners = rebar_config:get(Config2, depowner, dict:new()),
|
DepOwners = rebar_config:get(Config2, depowner, dict:new()),
|
||||||
|
|
||||||
%% check for conflicting deps
|
%% check for conflicting deps
|
||||||
[?ERROR("Conflicting dependencies for ~p: ~p~n", [K,
|
_ = [?ERROR("Conflicting dependencies for ~p: ~p~n",
|
||||||
[{"From: " ++ string:join(dict:fetch(D,
|
[K, [{"From: " ++ string:join(dict:fetch(D, DepOwners), ", "),
|
||||||
DepOwners),
|
{D#dep.vsn_regex, D#dep.source}} || D <- V]])
|
||||||
", "),
|
|| {K, V} <- dict:to_list(
|
||||||
{D#dep.vsn_regex,
|
lists:foldl(
|
||||||
D#dep.source}} || D <- V]]) ||
|
fun(Dep, Acc) ->
|
||||||
{K, V} <- dict:to_list(lists:foldl(fun(Dep, Acc) ->
|
dict:append(Dep#dep.app, Dep, Acc)
|
||||||
dict:append(Dep#dep.app, Dep, Acc)
|
end, dict:new(), UpdatedDeps)),
|
||||||
end, dict:new(), UpdatedDeps)), length(V) > 1],
|
length(V) > 1],
|
||||||
|
|
||||||
%% Add each updated dep to our list of dirs for post-processing. This yields
|
%% Add each updated dep to our list of dirs for post-processing. This yields
|
||||||
%% the necessary transitivity of the deps
|
%% the necessary transitivity of the deps
|
||||||
|
|
Loading…
Reference in a new issue