summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-09-20 09:01:03 -0500
committerTristan Sloughter <t@crashfast.com>2014-09-20 09:01:03 -0500
commit51f1cf4aae5a22fe8974edcdf10da4e8a7b05255 (patch)
tree5fc180a8bd15eb9c121fba6600bfd6b67996c7c1 /src/rebar3.erl
parent989a1bfe8d991846f81331a94eb65ffc10883cf5 (diff)
install plugins to plugins/
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r--src/rebar3.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index 39babeb..44d7d98 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -141,10 +141,12 @@ run_aux(State, Args) ->
State2 = rebar_state:set(State1, base_dir, filename:absname(rebar_state:dir(State1))),
{ok, Providers} = application:get_env(rebar, providers),
- rebar_plugins:install(State2),
- State3 = rebar_state:create_logic_providers(Providers, State2),
- Task = rebar_state:get(State3, task, "help"),
- rebar_core:process_command(rebar_state:command_args(State3, Args), list_to_atom(Task)),
+ {ok, PluginProviders, State3} = rebar_plugins:install(State2),
+ rebar_core:update_code_path(State),
+
+ State4 = rebar_state:create_logic_providers(Providers++PluginProviders, State3),
+ Task = rebar_state:get(State4, task, "help"),
+ rebar_core:process_command(rebar_state:command_args(State4, Args), list_to_atom(Task)),
ok.
%%