erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

Relx did not copy my deps to release "lib" directory #566

Closed pouriya closed 7 years ago

pouriya commented 7 years ago

I am using rebar3 v3.34 which it uses relx v3.22.0. I am developing an application named "ejc". My application has 2 dependencies, "mnesia", "mysql" (mysql-otp in github).

my relx config is: {relx ,[{release, {ejc, "1.0.0"}, [{mysql, load}, mnesia, ejc]} ,{dev_mode, false} ,{include_erts, true} ,{extended_start_script, true} ,{lib_dirs, ["./_build/default/lib/"]} % help for finding "mysql" ]}.

Application compiled successfully and workerd.(using "rebar3 shell") But after creating release (using "rebar3 release"), i could not find "mysql" or "mysql-*" in the "lib" directory of the release ! My application needs to start after starting "mnesia", but i just want to load "mysql", not start it.

lrascao commented 7 years ago

try removing the lib_dirs directive

pouriya commented 7 years ago

I tried, but did not work.

kzemek commented 7 years ago

This is the same issue as described in https://github.com/erlware/relx/issues/434 . mysql-otp has an empty applications list in its app.src file.

lrascao commented 7 years ago

@Pouriya-Jahanbakhsh could you please try out #567

pouriya commented 7 years ago

@lrascao worked, many thanks. Adding apps with empty applications in their .app.src file is nice feature too.

lrascao commented 7 years ago

closing via #567