summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-21 19:03:08 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-21 19:03:47 -0500
commit0bd49634ce58fcc4bcef1838604cb9a548192ad9 (patch)
treec9dc38951fd2f3bb78db7ab3d51ce7ea5ec2580d /src/rebar3.erl
parent76893ca4b9cb45a2808aa88d85546326fa0f7781 (diff)
don't lose global plugin providers
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r--src/rebar3.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index 523b8b0..2e4018f 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -145,12 +145,12 @@ init_config() ->
%% We don't want to worry about global plugin install state effecting later
%% usage. So we throw away the global profile state used for plugin install.
GlobalConfigThrowAway = rebar_state:current_profiles(GlobalConfig, ["global"]),
- rebar_plugins:handle_plugins(global,
+ GlobalState = rebar_plugins:handle_plugins(global,
rebar_state:get(GlobalConfigThrowAway, plugins, []),
GlobalConfigThrowAway),
-
+ GlobalPlugins = rebar_state:providers(GlobalState),
GlobalConfig2 = rebar_state:set(GlobalConfig, plugins, []),
- rebar_state:new(GlobalConfig2, Config1);
+ rebar_state:providers(rebar_state:new(GlobalConfig2, Config1), GlobalPlugins);
false ->
rebar_state:new(Config1)
end,