summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_prv_release.erl5
-rw-r--r--src/rebar_prv_tar.erl5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/rebar_prv_release.erl b/src/rebar_prv_release.erl
index f631499..3ac826e 100644
--- a/src/rebar_prv_release.erl
+++ b/src/rebar_prv_release.erl
@@ -33,13 +33,14 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
Options = rebar_state:command_args(State),
+ DepsDir = rebar_prv_install_deps:get_deps_dir(State),
AllOptions = string:join(["release" | Options], " "),
try
case rebar_state:get(State, relx, []) of
[] ->
- relx:main(AllOptions);
+ relx:main([{lib_dirs, [DepsDir]}], AllOptions);
Config ->
- relx:main([{config, Config}], AllOptions)
+ relx:main([{lib_dirs, [DepsDir]}, {config, Config}], AllOptions)
end,
{ok, State}
catch
diff --git a/src/rebar_prv_tar.erl b/src/rebar_prv_tar.erl
index ec1b8a3..184a1b4 100644
--- a/src/rebar_prv_tar.erl
+++ b/src/rebar_prv_tar.erl
@@ -33,12 +33,13 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
Options = rebar_state:command_args(State),
+ DepsDir = rebar_prv_install_deps:get_deps_dir(State),
AllOptions = string:join(["release", "tar" | Options], " "),
case rebar_state:get(State, relx, []) of
[] ->
- relx:main(AllOptions);
+ relx:main([{lib_dirs, [DepsDir]}], AllOptions);
Config ->
- relx:main([{config, Config}], AllOptions)
+ relx:main([{lib_dirs, [DepsDir]}, {config, Config}], AllOptions)
end,
{ok, State}.