浏览代码

Fix load order for custom project builders

Due to building dependencies with potential artifacts such as parse
transforms or macros, project builder plugins should be included in the
path, but _after_ deps are loaded.

Doing otherwise means that if any of the dependencies is required at
compile time, those of a plugin might get used first.
pull/1963/head
Fred Hebert 6 年前
父节点
当前提交
d425b4e4ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_prv_compile.erl

+ 1
- 1
src/rebar_prv_compile.erl 查看文件

@ -201,7 +201,7 @@ build_app(AppInfo, State) ->
case lists:keyfind(Type, 1, ProjectBuilders) of case lists:keyfind(Type, 1, ProjectBuilders) of
{_, Module} -> {_, Module} ->
%% load plugins since thats where project builders would be %% load plugins since thats where project builders would be
rebar_paths:set_paths([plugins, deps], State),
rebar_paths:set_paths([deps, plugins], State),
Res = Module:build(AppInfo), Res = Module:build(AppInfo),
rebar_paths:set_paths([deps], State), rebar_paths:set_paths([deps], State),
case Res of case Res of

正在加载...
取消
保存