简体   繁体   English

rebar3:无法访问依赖项

[英]rebar3: dependency is not reachable

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 ). 我试图将使用rebar构建的REST API示例转换为rebar3版本( http://jordenlowe.com/title/Explain_like_I_am_5_-_Erlang_REST_Framework_Cowboy )。 I have added jsx to app.src . 我已将jsx添加到app.src What could be the reason for this? 这可能是什么原因? Also is there anything I need to do more when making this a rebar3 release? 在制作rebar3版本时,还有什么我需要做的吗?

This error comes up. 出现此错误。

===> Failed to solve release:
Dependency jsx is specified as a dependency but is not reachable by the system.

It's not enough to add jsx to app.src file. 将jsx添加到app.src文件是不够的。 You need to add this dependency(jsx) rebar.config file. 您需要添加此依赖项(jsx)rebar.config文件。

Your deps section in rebar.config must be something like 你在rebar.config中的deps部分必须是这样的

  {deps, [
            {cowboy, "1.0.1"}, % package
            {jsx,  "2.8.0"}
   ]}.

Thanks for the answers and for the edit @Hamidreza Soleimani. 感谢您的回答和编辑@Hamidreza Soleimani。 I added this line to rebar.confid and the error is gone. 我将此行添加到rebar.confid ,错误消失了。

{jsx, {git,"git://github.com/talentdeficit/jsx.git", {tag, "v2.7.1"}}}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM