diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-07-29 09:06:40 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-07-29 09:06:40 -0400 |
commit | b2311d9e4d65e9007712b531b4e05b13aef12dd0 (patch) | |
tree | 821f22664a40441292fc5dae139bb6dccef03530 /src | |
parent | 7c46eea294ecce8338bee7e76a13a0390b7c5901 (diff) | |
parent | 1e38bc0d0f7c08da25cb6765b6b9741cadbd4487 (diff) |
Merge pull request #668 from tsloughter/plugin_deps_hooks
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); |