From 7884a4b109af1d11dcf887e391a99f189aaf165e Mon Sep 17 00:00:00 2001 From: Hakan Nilsson Date: Mon, 23 Nov 2020 15:43:21 +0100 Subject: [PATCH] Use root dir when loading relx.config --- src/rebar_relx.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rebar_relx.erl b/src/rebar_relx.erl index 4cc935aa..af4104f3 100644 --- a/src/rebar_relx.erl +++ b/src/rebar_relx.erl @@ -75,7 +75,8 @@ read_relx_config(State, Options) -> ConfigFile = proplists:get_value(config, Options, []), case ConfigFile of "" -> - case {rebar_state:get(State, relx, []), file:consult("relx.config")} of + ConfigPath = filename:join([rebar_dir:root_dir(State), "relx.config"]), + case {rebar_state:get(State, relx, []), file:consult(ConfigPath)} of {[], {ok, Config}} -> ?DEBUG("Configuring releases with relx.config", []), Config;