summaryrefslogtreecommitdiff
path: root/src/rebar_prv_release.erl
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/rebar_prv_release.erl
parent634b1a7ac2e1c9b336652248af739ea45f4d619e (diff)
pass deps dir of project to relx
Diffstat (limited to 'src/rebar_prv_release.erl')
-rw-r--r--src/rebar_prv_release.erl5
1 files changed, 3 insertions, 2 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