diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-17 08:33:15 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-17 08:33:15 -0500 |
commit | 3126e7eb5561abea4a6674dbb528a550a2869cec (patch) | |
tree | f3c7fa7185fdd600ce2acb53c123d330e460721c /src | |
parent | 5f89e9c28d5932cc7a3a7075d4a6eb1136169a7d (diff) |
update project_apps and state before running post hooks
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_compile.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl index 11a01ed..94a1e0b 100644 --- a/src/rebar_prv_compile.erl +++ b/src/rebar_prv_compile.erl @@ -47,11 +47,13 @@ do(State) -> %% Set hooks to empty so top-level hooks aren't run for each project app State2 = rebar_state:set(rebar_state:set(State, post_hooks, []), pre_hooks, []), {ok, ProjectApps1} = rebar_digraph:compile_order(ProjectApps), + ProjectApps2 = build_apps(State2, Providers, ProjectApps1), + State3 = rebar_state:project_apps(State2, ProjectApps2), - rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State), + rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State3), - {ok, rebar_state:project_apps(State, ProjectApps2)}. + {ok, State3}. -spec format_error(any()) -> iolist(). format_error(Reason) -> |