summaryrefslogtreecommitdiff
path: root/src/rebar_plugins.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-02-22 17:26:18 -0500
committerFred Hebert <mononcqc@ferd.ca>2016-02-22 17:26:18 -0500
commit2d2b8a7c76a428ff6a6c107e53f7e1dc4a122562 (patch)
tree940fd487cdc188f823f9db5400c5c72216e417e6 /src/rebar_plugins.erl
parent9b26c4f68889aa0945fdddf09f87e7ffe9d4ccc7 (diff)
parentca64142633e5e0b4405df15f32b7a6ad005f354d (diff)
Merge pull request #1075 from tsloughter/plugin_override
add project_providers after initing default providers but allow overrides
Diffstat (limited to 'src/rebar_plugins.erl')
-rw-r--r--src/rebar_plugins.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl
index 1fb8732..68ba6da 100644
--- a/src/rebar_plugins.erl
+++ b/src/rebar_plugins.erl
@@ -19,10 +19,12 @@
-spec project_plugins_install(rebar_state:t()) -> rebar_state:t().
project_plugins_install(State) ->
Profiles = rebar_state:current_profiles(State),
- lists:foldl(fun(Profile, StateAcc) ->
- Plugins = rebar_state:get(State, {project_plugins, Profile}, []),
- handle_plugins(Profile, Plugins, StateAcc)
- end, State, Profiles).
+ State1 = rebar_state:allow_provider_overrides(State, true),
+ State2 = lists:foldl(fun(Profile, StateAcc) ->
+ Plugins = rebar_state:get(State, {project_plugins, Profile}, []),
+ handle_plugins(Profile, Plugins, StateAcc)
+ end, State1, Profiles),
+ rebar_state:allow_provider_overrides(State2, false).
-spec top_level_install(rebar_state:t()) -> rebar_state:t().
top_level_install(State) ->