From 507281f658f3a25b944b73ef52f9794355f6ed47 Mon Sep 17 00:00:00 2001 From: Kelly McLaughlin Date: Fri, 6 Feb 2015 09:50:47 -0700 Subject: Add packages to code path after installation Fix a bug where packages are not added to the code path after installation. Dependent applications that build from source are not affected by this issue since the build_apps function in rebar_prv_compiler takes care of the code path changes for them. It is only the precompiled packages that suffer from this issue. --- src/rebar_fetch.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl index eac2d02..088a49a 100644 --- a/src/rebar_fetch.erl +++ b/src/rebar_fetch.erl @@ -46,6 +46,7 @@ download_source(AppDir, Source) -> code:del_path(filename:absname(filename:join(AppDir1, "ebin"))), ec_file:remove(filename:absname(AppDir1), [recursive]), ok = ec_file:copy(FromDir, filename:absname(AppDir1), [recursive]), + true = code:add_patha(filename:join(AppDir1, "ebin")), true end catch -- cgit v1.1