From f8bb088305f8ce0373e496dbd17ff5a1cfbdec3e Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 24 Jun 2015 19:45:27 -0500 Subject: fix for overrides in plugins, simpler plugin state handling --- src/rebar_plugins.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/rebar_plugins.erl') diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl index 01fe118..7e12324 100644 --- a/src/rebar_plugins.erl +++ b/src/rebar_plugins.erl @@ -93,9 +93,7 @@ handle_plugin(Profile, Plugin, State, Upgrade) -> build_plugin(AppInfo, Apps, State) -> Providers = rebar_state:providers(State), Providers1 = rebar_state:providers(rebar_app_info:state(AppInfo)), - AppDir = rebar_app_info:dir(AppInfo), - C = rebar_config:consult(AppDir), - S = rebar_state:new(rebar_state:all_deps(rebar_state:new(), Apps), C, AppDir), + S = rebar_state:all_deps(rebar_app_info:state_or_new(State, AppInfo), Apps), rebar_prv_compile:compile(S, Providers++Providers1, AppInfo). plugin_providers({Plugin, _, _, _}) when is_atom(Plugin) -> -- cgit v1.1