diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2015-08-14 12:12:55 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-09-17 17:59:13 +0200 |
commit | a1a7beb24da27b9faaee97f17dfda202f11eb539 (patch) | |
tree | 97fe9695e05c34e0a0b58971524ca25c3eb9f7c2 | |
parent | Merge pull request #736 from quanzhuo/master (diff) |
Make sure that lager is first on our deps list
Diffstat (limited to '')
-rw-r--r-- | rebar.config.script | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rebar.config.script b/rebar.config.script index 43bb8f0e..7ec52722 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. |