diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-07-28 19:10:31 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-07-28 19:10:39 -0500 |
commit | 1e38bc0d0f7c08da25cb6765b6b9741cadbd4487 (patch) | |
tree | 821f22664a40441292fc5dae139bb6dccef03530 /src | |
parent | 7c46eea294ecce8338bee7e76a13a0390b7c5901 (diff) |
keep plugins dir as deps dir when compiling plugins+deps
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_plugins.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl index 3e855de..bda3fb7 100644 --- a/src/rebar_plugins.erl +++ b/src/rebar_plugins.erl @@ -94,7 +94,8 @@ build_plugin(AppInfo, Apps, State) -> Providers = rebar_state:providers(State), Providers1 = rebar_state:providers(rebar_app_info:state(AppInfo)), 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) -> validate_plugin(Plugin); |