jlouis / etorrent

Erlang Bittorrent Client
BSD 2-Clause "Simplified" License
295 stars 50 forks source link

make rel fails the first time #109

Closed aklt closed 13 years ago

aklt commented 13 years ago

This is a small issue. I do

make deps
make compile
make rel

The last one fails with

rebar compile
==> edown (compile)
==> gen_leader (compile)
==> gproc (compile)
==> riak_err (compile)
==> mochiweb (compile)
==> ibrowse (compile)
==> rel (compile)
==> etorrent (compile)
==> etorrent (compile)
rebar generate
==> rel (generate)
ERROR: Unexpected error: {'EXIT',
                             {function_clause,
                                 [{mustache,escape,[true,[]]},
                                  {erl_eval,do_apply,5},
                                  {erl_eval,expr,5},
                                  {erl_eval,expr,5},
                                  {mustache,render,3},
                                  {rebar_reltool,execute_overlay,4},
                                  {rebar_reltool,generate,2},
                                  {rebar_core,run_modules,4}]}}
make: *** [rel/etorrent] Error 1

When I repeat

make rel

There are no errors and it seems to be working.

jlouis commented 13 years ago

Thank you for the issue. Do you have any idea at what could be wrong here? What version of rebar are you using?

aklt commented 13 years ago

I have not looked into this too closely and I am going abroad in an hours time so I will not be able to look into it until i get back, but maybe this can be of help:

$ rebar --version
rebar version: 2 date: 20101010_193118 vcs: hg d9fd91b7115e

Erlang shell:

$ erl
Erlang R14B (erts-5.8.1) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.1  (abort with ^G)
1> 
jlouis commented 13 years ago

The rebar version is the problem. There is a more recent one here on github:

https://github.com/basho/rebar

which you probably want to try out. We do have some fixes to that templating part of rebar in the newer version which you might find helpful :)

aklt commented 13 years ago

That solved it, thanks!

jlouis commented 13 years ago

Cool!