Closed v-kat closed 7 years ago
Rebar also seems to have some dependency issue (on both Ubuntu and Mac)
$rebar compile
Uncaught error in rebar_core: {'EXIT',
{function_clause,
[{override_deps_versions,
'-update_deps/1-fun-0-',
[{goldrush,"0.1.9"}],
[{file,
"/home/ejabberd/ejabberd/plugins/override_deps_versions.erl"},
{line,14}]},
{lists,map,2,
[{file,"lists.erl"},{line,1239}]},
{override_deps_versions,update_deps,1,
[{file,
"/home/ejabberd/ejabberd/plugins/override_deps_versions.erl"},
{line,14}]},
{rebar_core,acc_modules,5,
[{file,"src/rebar_core.erl"},{line,540}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,247}]},
{rebar_core,process_each,5,
[{file,"src/rebar_core.erl"},{line,351}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,253}]},
{rebar_core,process_commands,2,
[{file,"src/rebar_core.erl"},{line,93}]}]}}
I don't think you can compile ejabberd using rebar3.
I managed to get it to compile successfully and was trying to get mix compile
working, as they are more similar in their build output.
Newer versions of some packages need to be pushed for the rebar.config
to be right, as well.
So? We're not going to use rebar3 any time soon, because it brings no benefits for our building process.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
17.3 from hex
Mac
source
Compiling with rebar fails. I'd PR fixing module numbers, but you can just update some of the modules on hex.pm, one of your other modules is also failing to compile.
I changed
_build/default/lib/cache_tab/src/cache_tab_app.erl.33
to be the contents of the included module, as the .hrl file doesn't seem to be included in the module.i.e.
to (the file's contents)
It seemed to have then compiled but I received
To get it to this state, I had to fix various dependencies, as some modules haven't been updated on hex.pm
(below is rebar.config)
This relates to me trying to work around the issues I was experiencing with
mix compile
https://github.com/processone/ejabberd/issues/1774 with that issue being more important to me.I can also PR my changes if you don't want to update the hex modules and if you aren't going to do changes to https://github.com/processone/cache_tab
Thanks!