From 5c465514b285a31565ab4512e55bef12e9b5e0c5 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 8 Nov 2014 09:34:52 -0600 Subject: add deps to code paths after build so available to other deps --- src/rebar_prv_compile.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl index 5495cc9..5787bd3 100644 --- a/src/rebar_prv_compile.erl +++ b/src/rebar_prv_compile.erl @@ -72,7 +72,8 @@ build_apps(State, Apps) -> %% Legacy hook support rebar_hooks:run_compile_hooks(AppDir, pre_hooks, compile, S), build(S, AppInfo), - rebar_hooks:run_compile_hooks(AppDir, post_hooks, compile, S) + rebar_hooks:run_compile_hooks(AppDir, post_hooks, compile, S), + true = code:add_patha(filename:join(AppDir, "ebin")) end, Apps). build(State, AppInfo) -> -- cgit v1.1