From 9a57e060155cb2c73fb52bdbd80e5a173607478c Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Wed, 12 Sep 2012 00:39:52 -0700 Subject: [PATCH] Restore ability to specify deps_dir on the command line It was previously possible to run `rebar compile deps_dir=/path/to/deps`, but as of 70d27c5720331076f52e4fd7bcd1dc8045c8c86a, it was nixed. --- src/rebar_deps.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index 67652e3..699f189 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -185,7 +185,8 @@ setup_env(Config) -> %% Sets a default if root config has no deps_dir set set_shared_deps_dir(Config, []) -> rebar_config:set_xconf(Config, deps_dir, - rebar_config:get_local(Config, deps_dir, "deps")); + rebar_config:get_local(Config, deps_dir, + rebar_config:get_global(Config, deps_dir, "deps"))); set_shared_deps_dir(Config, _DepsDir) -> Config.