summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-08 17:42:15 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-08 17:42:15 -0600
commit26192b2187bbb93df28ed7b603b26e49f04badc7 (patch)
tree40c443565f09198befb38d671f1c126dfdbd024f /src
parent634b1a7ac2e1c9b336652248af739ea45f4d619e (diff)
pass deps dir of project to relx
Diffstat (limited to 'src')
-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}.