mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Merge pull request #100 from josevalim/patch-1
External deps_dir should have higher priority than the config one
This commit is contained in:
commit
3a9559651c
1 changed files with 3 additions and 2 deletions
|
@ -241,10 +241,11 @@ info_help(Description) ->
|
|||
|
||||
%% Added because of trans deps,
|
||||
%% need all deps in same dir and should be the one set by the root rebar.config
|
||||
%% In case one is given globally, it has higher priority
|
||||
%% Sets a default if root config has no deps_dir set
|
||||
set_shared_deps_dir(Config, []) ->
|
||||
GlobalDepsDir = rebar_config:get_global(Config, deps_dir, "deps"),
|
||||
DepsDir = rebar_config:get_local(Config, deps_dir, GlobalDepsDir),
|
||||
LocalDepsDir = rebar_config:get_local(Config, deps_dir, "deps"),
|
||||
DepsDir = rebar_config:get_global(Config, deps_dir, LocalDepsDir),
|
||||
rebar_config:set_xconf(Config, deps_dir, DepsDir);
|
||||
set_shared_deps_dir(Config, _DepsDir) ->
|
||||
Config.
|
||||
|
|
Loading…
Reference in a new issue