mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Re-add support for delete-deps
This commit is contained in:
parent
e66585789d
commit
6efd2516ce
1 changed files with 5 additions and 3 deletions
|
@ -32,7 +32,8 @@
|
|||
postprocess/2,
|
||||
compile/2,
|
||||
'check-deps'/2,
|
||||
'get-deps'/2]).
|
||||
'get-deps'/2,
|
||||
'delete-deps'/2]).
|
||||
|
||||
|
||||
-record(dep, { dir,
|
||||
|
@ -104,6 +105,9 @@ compile(Config, AppFile) ->
|
|||
erlang:put(?MODULE, [D#dep.dir || D <- PulledDeps]),
|
||||
ok.
|
||||
|
||||
'delete-deps'(Config, _) ->
|
||||
rebar_file_utils:rm_rf(get_deps_dir()).
|
||||
|
||||
|
||||
%% ===================================================================
|
||||
%% Internal functions
|
||||
|
@ -154,8 +158,6 @@ find_deps([Other | _Rest], _Acc) ->
|
|||
[Other, rebar_utils:get_cwd()]).
|
||||
|
||||
|
||||
|
||||
|
||||
require_source_engine(Source) ->
|
||||
case source_engine_avail(Source) of
|
||||
true ->
|
||||
|
|
Loading…
Reference in a new issue