From a1a7beb24da27b9faaee97f17dfda202f11eb539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Fri, 14 Aug 2015 12:12:55 +0200 Subject: [PATCH] Make sure that lager is first on our deps list --- rebar.config.script | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rebar.config.script b/rebar.config.script index 43bb8f0ef..7ec52722b 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -167,6 +167,12 @@ TestConfig = case file:read_file_info(TestConfigFile) of "" end, +AllDeps0 = Deps ++ CfgDeps, +AllDeps = case lists:keytake(lager, 1, AllDeps0) of + {value, Tuple, Rest} -> [Tuple|Rest]; + false -> AllDeps0 + end, + Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++ [{src_dirs, [asn1, src | SrcDirs]}]}, {sub_dirs, ["rel"]}, @@ -180,7 +186,7 @@ Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++ [{"(XC - UC) || (XU - X - B - " ++ string:join(CfgXrefs, " - ") ++ ")", []}]}, {post_hooks, PostHooks ++ CfgPostHooks}, - {deps, Deps ++ CfgDeps}] ++ ElixirConfig, + {deps, AllDeps}] ++ ElixirConfig, %%io:format("ejabberd configuration:~n ~p~n", [Config]), Config.