summaryrefslogtreecommitdiff
path: root/src/rebar_prv_tar.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_tar.erl')
-rw-r--r--src/rebar_prv_tar.erl5
1 files changed, 3 insertions, 2 deletions
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}.