Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use REBAR_DEPS_DIR if set as location of DEPS dir

  • Loading branch information...
commit 620c4b01c6e59d47e92ea069f8510b8cb482ebae 1 parent d3c7be2
@dizzyd dizzyd authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/rebar_deps.erl
View
8 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.
Please sign in to comment.
Something went wrong with that request. Please try again.