diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2013-07-02 10:59:26 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2013-07-02 10:59:26 -0600 |
commit | 620c4b01c6e59d47e92ea069f8510b8cb482ebae (patch) | |
tree | 3d947a34bd48bdc8ec1289481dfc36575d6596bb /src | |
parent | d3c7be265dadd3c4f5c1b4b51cd67005c8505b40 (diff) |
Use REBAR_DEPS_DIR if set as location of DEPS dir
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_deps.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index e37531a..be6283d 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -245,7 +245,13 @@ info_help(Description) -> %% Sets a default if root config has no deps_dir set set_shared_deps_dir(Config, []) -> LocalDepsDir = rebar_config:get_local(Config, deps_dir, "deps"), - DepsDir = rebar_config:get_global(Config, deps_dir, LocalDepsDir), + GlobalDepsDir = rebar_config:get_global(Config, deps_dir, LocalDepsDir), + DepsDir = case os:getenv("REBAR_DEPS_DIR") of + false -> + GlobalDepsDir; + Dir -> + Dir + end, rebar_config:set_xconf(Config, deps_dir, DepsDir); set_shared_deps_dir(Config, _DepsDir) -> Config. |