瀏覽代碼

only compile invalid plugins

pull/3/head
Tristan Sloughter 10 年之前
父節點
當前提交
6c6480fa07
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -1
      src/rebar_plugins.erl
  2. +0
    -1
      src/rebar_prv_install_deps.erl

+ 2
- 1
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)}.

+ 0
- 1
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}.

Loading…
取消
儲存