浏览代码

add comment explaining installing each plugin individually

pull/474/head
Tristan Sloughter 10 年前
父节点
当前提交
6c6940f860
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/rebar_plugins.erl

+ 1
- 0
src/rebar_plugins.erl 查看文件

@ -36,6 +36,7 @@ handle_plugins(Profile, Plugins, State) ->
DepsDir = rebar_state:get(State, deps_dir, ?DEFAULT_DEPS_DIR), DepsDir = rebar_state:get(State, deps_dir, ?DEFAULT_DEPS_DIR),
State1 = rebar_state:set(State, deps_dir, ?DEFAULT_PLUGINS_DIR), State1 = rebar_state:set(State, deps_dir, ?DEFAULT_PLUGINS_DIR),
%% Install each plugin individually so if one fails to install it doesn't effect the others
{PluginProviders, State2} = {PluginProviders, State2} =
lists:foldl(fun(Plugin, {PluginAcc, StateAcc}) -> lists:foldl(fun(Plugin, {PluginAcc, StateAcc}) ->
{NewPlugins, NewState} = handle_plugin(Profile, Plugin, StateAcc), {NewPlugins, NewState} = handle_plugin(Profile, Plugin, StateAcc),

正在加载...
取消
保存