summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-07-11 12:42:38 -0500
committerTristan Sloughter <t@crashfast.com>2015-07-11 12:49:08 -0500
commita06a2f8917a9075bdd150d692a85dd65f211a51d (patch)
treee18b6b5b753bfc85e35d8a03c858c62013c824c7 /src
parent8dc0fafb36702703867306f8df16714f0dbdc17c (diff)
handle global plugins installing plugins to build deps
Diffstat (limited to 'src')
-rw-r--r--src/rebar_state.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index d0b28de..4b8a282 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -289,7 +289,13 @@ apply_profiles(State, Profile) when not is_list(Profile) ->
apply_profiles(State, [default]) ->
State;
apply_profiles(State=#state_t{default = Defaults, current_profiles=CurrentProfiles}, Profiles) ->
- AppliedProfiles = deduplicate(CurrentProfiles ++ Profiles),
+ AppliedProfiles = case Profiles of
+ [global | _] ->
+ Profiles;
+ _ ->
+ deduplicate(CurrentProfiles ++ Profiles)
+ end,
+
ConfigProfiles = rebar_state:get(State, profiles, []),
NewOpts =