diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-06-09 13:32:28 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-06-09 13:32:28 -0600 |
commit | a86cb0b4fafbec610e724934905c4113a9614d74 (patch) | |
tree | 79e0d37cf94d6586e1939c261eec34a1c6ea0cdf | |
parent | 299f3045be9ae8056ad2ab8b016c026d6d84d704 (diff) |
Re-add support for skip_deps
--HG--
extra : rebase_source : bd95812644fc600e7439f40d68259687e1bf9073
-rw-r--r-- | src/rebar_deps.erl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index 3b57461..d9819f6 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -56,9 +56,14 @@ preprocess(Config, _) -> %% Add available deps to code path update_deps_code_path(AvailableDeps), - %% Return all the available dep directories for process - %% TODO: Re-add support for skip_deps=true - {ok, [D#dep.dir || D <- AvailableDeps]}. + %% If skip_deps=true, don't worry about processing deps at all. + case rebar_config:get_global(skip_deps, false) of + false -> + %% Return all the available dep directories for process + {ok, [D#dep.dir || D <- AvailableDeps]}; + _ -> + {ok, []} + end. postprocess(_Config, _) -> case erlang:get(?MODULE) of |