Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems building (dependencies) #5

Open
RichardMullins opened this issue May 19, 2016 · 2 comments
Open

Problems building (dependencies) #5

RichardMullins opened this issue May 19, 2016 · 2 comments

Comments

@RichardMullins
Copy link

Hey,

I am having some trouble building, specifically with dependencies. I am running Ubuntu 14.04 but I've also tried on Ubuntu 15.04 and on my MacBook Pro. I used apt-get to install rebar on the Ubuntu machines and brew to install on the MBP.

When I run the build script it fails trying to get the jsx (a dependency of ejwt) with the message

Dependency not available: jsx-2.8.0 (undefined)

I received this message on the Ubuntu and MBP. So I tried adding the git param to the rebar.config in ejwt (using https://github.com/talentdeficit/jsx as the git project) and that did run further but one of the tests failed (decode_malformed_dots_test).

So I removed the eunit param from the build step and tried to install the plugin - that seemed to work but I'm a bit nervous about blowing up couch.

I then tied using rebar3 which worked for the build phase but it seems it copies files into different locations so when it was moving around the ebin and priv directories it had trouble.

So I'm sure it something to do with my environment but I'm not sure where to start looking. Any ideas?

@ghost
Copy link

ghost commented May 20, 2016

Hi @RichardMullins I solved the dependencies with this snippet:

{deps, [
{ejwt, ".", {git, "https://github.com/artefactop/ejwt"}},
{jsx, ".
", {git, "https://github.com/talentdeficit/jsx.git"}}
]}.

But I got the same error you got:

couch_jwt_auth: decode_malformed_dots_test...failed
in function couch_jwt_auth:'-decode_malformed_dots_test/0-fun-0-'/0 (src/couch_jwt_auth.erl, line 113)
**error:{assertException_failed,
[{module,couch_jwt_auth},
{line,113},
{expression,"decode ( "..." , ? EmptyConfig )"},
{pattern,"{ error , { badarg , _ } , [...] }"},
{unexpected_exception,
{error,badarg,
[{jsx_decoder,incomplete,5,[{file,...},{...}]},
{ejwt,decode,2,[{...}|...]},
{couch_jwt_auth,decode,2,[...]},
{couch_jwt_auth,'-decode_malformed_dots_test/0-fun-0-',0,...},
{eunit_test,'-mf_wrapper/2-fun-0-',...},
{eunit_test,...},
{...}|...]}}]}

@RichardMullins
Copy link
Author

Thanks @vincenzobluesparklabs,

I tried again with your modification and it ran through ok (failing that same test of course) but after the build was complete the script still failed trying to copy files in ebin and priv directories - specifically there are no priv directories to copy.

Not sure if this is a showstopper or not (and trying to avoid having to learn erlang to find out :)) Any other ideas?

ahaith added a commit to ox-it/couch_jwt_auth that referenced this issue Sep 28, 2016
Fix version of ejwt to avoid softapalvelin#5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant