summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-06-19 22:15:26 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-06-19 22:15:26 -0400
commit7675a4d33ff09a0014982811e0b38e72ac6d50e4 (patch)
tree732271867780c01c5654aa35e45d62bb01cae511
parent8bd24214cbcc7d68514bee43d736837e2de84808 (diff)
parent4223e5dd64926d4e6662cb5a2f795ed89abc5324 (diff)
Merge pull request #528 from tsloughter/plugin_paths
fix path storing for plugins, fixes #527
-rw-r--r--src/rebar_plugins.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl
index a267b9d..71fcf75 100644
--- a/src/rebar_plugins.erl
+++ b/src/rebar_plugins.erl
@@ -21,14 +21,15 @@ project_apps_install(State) ->
lists:foldl(fun(Profile, StateAcc) ->
Plugins = rebar_state:get(State, {plugins, Profile}, []),
- handle_plugins(Profile, Plugins, StateAcc),
- lists:foldl(fun(App, StateAcc1) ->
+ StateAcc1 = handle_plugins(Profile, Plugins, StateAcc),
+
+ lists:foldl(fun(App, StateAcc2) ->
AppDir = rebar_app_info:dir(App),
C = rebar_config:consult(AppDir),
S = rebar_state:new(rebar_state:new(), C, AppDir),
Plugins2 = rebar_state:get(S, {plugins, Profile}, []),
- handle_plugins(Profile, Plugins2, StateAcc1)
- end, StateAcc, ProjectApps)
+ handle_plugins(Profile, Plugins2, StateAcc2)
+ end, StateAcc1, ProjectApps)
end, State, Profiles).
-spec install(rebar_state:t()) -> rebar_state:t().