Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rebar3: dependency is not reachable

Tags:

erlang

I was trying to convert a REST API example built using rebar to rebar3 release (http://jordenlowe.com/title/Explain_like_I_am_5_-_Erlang_REST_Framework_Cowboy). I have added jsx to app.src. What could be the reason for this? Also is there anything I need to do more when making this a rebar3 release?

This error comes up.

===> Failed to solve release:
Dependency jsx is specified as a dependency but is not reachable by the system.
like image 330
Pavanan M S Avatar asked Sep 26 '22 12:09

Pavanan M S


2 Answers

It's not enough to add jsx to app.src file. You need to add this dependency(jsx) rebar.config file.

Your deps section in rebar.config must be something like

  {deps, [
            {cowboy, "1.0.1"}, % package
            {jsx,  "2.8.0"}
   ]}.
like image 178
Odobenus Rosmarus Avatar answered Dec 13 '22 02:12

Odobenus Rosmarus


Thanks for the answers and for the edit @Hamidreza Soleimani. I added this line to rebar.confid and the error is gone.

{jsx, {git,"git://github.com/talentdeficit/jsx.git", {tag, "v2.7.1"}}}
like image 42
Pavanan M S Avatar answered Dec 13 '22 01:12

Pavanan M S