diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-09-20 09:12:36 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-09-20 09:12:36 -0500 |
commit | 6c6480fa077065d1db77b78a49c79d9f6cf08035 (patch) | |
tree | e2da3ddf63d9c24aab23f9b9f2fc68f0a413f4c0 /src | |
parent | 6f9ea13dd423d7ff0307265140496fb36c62d924 (diff) |
only compile invalid plugins
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_plugins.erl | 3 | ||||
-rw-r--r-- | src/rebar_prv_install_deps.erl | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl index d8422d8..9fc0b23 100644 --- a/src/rebar_plugins.erl +++ b/src/rebar_plugins.erl @@ -18,11 +18,12 @@ install(State) -> {ok, State2} = rebar_prv_install_deps:handle_deps(State1, Plugins), Apps = rebar_state:get(State2, all_deps), + ToBuild = lists:dropwhile(fun rebar_app_info:valid/1, Apps), lists:foreach(fun(AppInfo) -> C = rebar_config:consult(rebar_app_info:dir(AppInfo)), S = rebar_state:new(rebar_state:new(), C, rebar_app_info:dir(AppInfo)), rebar_prv_compile:build(S, AppInfo) - end, Apps), + end, ToBuild), PluginProviders = plugin_providers(Plugins), {ok, PluginProviders, rebar_state:set(State2, deps_dir, ?DEFAULT_DEPS_DIR)}. diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 81acf22..c86d2d1 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -124,7 +124,6 @@ handle_deps(State, Deps) -> %% Sort all apps to build order State3 = rebar_state:set(State2, all_deps, AllDeps), - {ok, State3}. |