mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Re-add support for skip_deps
--HG-- extra : rebase_source : bd95812644fc600e7439f40d68259687e1bf9073
This commit is contained in:
parent
299f3045be
commit
a86cb0b4fa
1 changed files with 8 additions and 3 deletions
|
@ -56,9 +56,14 @@ preprocess(Config, _) ->
|
||||||
%% Add available deps to code path
|
%% Add available deps to code path
|
||||||
update_deps_code_path(AvailableDeps),
|
update_deps_code_path(AvailableDeps),
|
||||||
|
|
||||||
%% Return all the available dep directories for process
|
%% If skip_deps=true, don't worry about processing deps at all.
|
||||||
%% TODO: Re-add support for skip_deps=true
|
case rebar_config:get_global(skip_deps, false) of
|
||||||
{ok, [D#dep.dir || D <- AvailableDeps]}.
|
false ->
|
||||||
|
%% Return all the available dep directories for process
|
||||||
|
{ok, [D#dep.dir || D <- AvailableDeps]};
|
||||||
|
_ ->
|
||||||
|
{ok, []}
|
||||||
|
end.
|
||||||
|
|
||||||
postprocess(_Config, _) ->
|
postprocess(_Config, _) ->
|
||||||
case erlang:get(?MODULE) of
|
case erlang:get(?MODULE) of
|
||||||
|
|
Loading…
Reference in a new issue