[erlang-questions] erlpass issue

Tristan Sloughter t@REDACTED
Mon Nov 30 21:24:59 CET 2015


erlpass' rebar config uses the rebar3 format of deps which leaves off
the second element in the tuple:
https://github.com/ferd/erlpass/blob/master/rebar.config#L1-L2

This causes the crash you see.

-- 
  Tristan Sloughter
  t@REDACTED

On Mon, Nov 30, 2015, at 02:09 PM, lloyd@REDACTED wrote:
> Hi Fred,
> 
> Hope all is well and life is giving you many grins. Sorry to bother you,
> but I've run into the following mystery with erlpass:
> 
> I've configured erlpass as a dependency in different two Nitrogen apps---
> wgb and wgc.
> 
> Here, respectively, are the two rebar configurations:
> 
> wgb--- 
> 
>     {erlpass,          "",    {git, "git://github.com/ferd/erlpass",     
>                   {branch, master}}},
> 
> wgc---
> 
>     {erlpass,          "",    {git, "git://github.com/ferd/erlpass",     
>                   {branch, master}}},
> 
> To my eye they look to be the same. But, when I execute make, wgb
> compiles:
> 
> make[1]: Leaving directory `/home/lloyd/wgb/lib/bcrypt/c_src'
> ==> erlpass (compile)
> ==> nitrogen_tinymce (compile)
> 
> But wgc doesn't:
> 
> ==> erlpass (compile)
> ERROR: compile failed while processing /home/lloyd/wgc/lib/erlpass:
> {'EXIT',{badarg,[{io,format,
>                      [<0.24.0>,"Dependency not available: ~p-~s (~p)\n",
>                       [bcrypt,
>                        {git,"https://github.com/opscode/erlang-bcrypt.git",
>                             {branch,"master"}},
>                        undefined]],
>                      []},
>                  {lists,foreach,2,[{file,"lists.erl"},{line,1337}]},
>                  {rebar_deps,do_check_deps,1,[]},
>                  {rebar_deps,compile,2,[]},
>                  {rebar_core,run_modules,4,[]},
>                  {rebar_core,execute,6,[]},
>                  {rebar_core,maybe_execute,8,[]},
>                  {rebar_core,process_dir1,7,[]}]}}
> make: *** [compile] Error 1
> 
> And I'm stuck. Any thoughts on how  clear up this strange state of
> affairs?
> 
> All the best,
> 
> Lloyd
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list