From d87b68b413f48f2250135a5927b3455ec4ededd6 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 1 May 2020 09:07:30 -0600 Subject: [PATCH] output checkouts compilation to _build//checkouts/ --- src/rebar_app_utils.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index 0b16ae05..4bf2dea7 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -255,7 +255,10 @@ dep_to_app(Parent, DepsDir, Name, Vsn, Source, IsLock, State) -> CheckoutsDir = rebar_utils:to_list(rebar_dir:checkouts_dir(State, Name)), AppInfo = case rebar_app_info:discover(CheckoutsDir) of {ok, App} -> - rebar_app_info:source(rebar_app_info:is_checkout(App, true), checkout); + OutDir = filename:join([DepsDir, "..", "checkouts", Name]), + rebar_app_info:out_dir( + rebar_app_info:source( + rebar_app_info:is_checkout(App, true), checkout), OutDir); not_found -> Dir = rebar_utils:to_list(filename:join(DepsDir, Name)), {ok, AppInfo0} =