浏览代码

keep plugins dir as deps dir when compiling plugins+deps

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

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

@ -94,7 +94,8 @@ build_plugin(AppInfo, Apps, State) ->
Providers = rebar_state:providers(State), Providers = rebar_state:providers(State),
Providers1 = rebar_state:providers(rebar_app_info:state(AppInfo)), Providers1 = rebar_state:providers(rebar_app_info:state(AppInfo)),
S = rebar_state:all_deps(rebar_app_info:state_or_new(State, AppInfo), Apps), S = rebar_state:all_deps(rebar_app_info:state_or_new(State, AppInfo), Apps),
rebar_prv_compile:compile(S, Providers++Providers1, AppInfo).
S1 = rebar_state:set(S, deps_dir, ?DEFAULT_PLUGINS_DIR),
rebar_prv_compile:compile(S1, Providers++Providers1, AppInfo).
plugin_providers({Plugin, _, _, _}) when is_atom(Plugin) -> plugin_providers({Plugin, _, _, _}) when is_atom(Plugin) ->
validate_plugin(Plugin); validate_plugin(Plugin);

正在加载...
取消
保存