summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2018-10-05 07:58:36 -0600
committerGitHub <noreply@github.com>2018-10-05 07:58:36 -0600
commit6ea0a600b4f560565ca963b69c86b9e9cb0ea0b8 (patch)
tree75956f965f097ca08b21e0a05a5d0c3f04ae022d /src
parent8bcb7da1dd294f13bc8d2040ec88f0b41b941e1b (diff)
upgrade relx and set base_dir in overlay_vars (#1902)
Diffstat (limited to 'src')
-rw-r--r--src/rebar_relx.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_relx.erl b/src/rebar_relx.erl
index 4548761..431e1bc 100644
--- a/src/rebar_relx.erl
+++ b/src/rebar_relx.erl
@@ -40,7 +40,8 @@ do(Module, Command, Provider, State) ->
,{caller, api}
,{log_level, LogLevel} | output_dir(OutputDir, Options)] ++ ErlOpts, AllOptions);
Config ->
- Config1 = merge_overlays(Config),
+ Config1 = [{overlay_vars, [{base_dir, rebar_dir:base_dir(State)}]}
+ | merge_overlays(Config)],
relx:main([{lib_dirs, LibDirs}
,{config, Config1}
,{caller, api}