[英]Elixir dependency does not generate app file
我即将发布myhtmlex库的0.2.0
。 但是我在测试新的程序包版本时遇到了麻烦,因为测试应用程序不会生成应用程序文件。
为了测试集成,我编写了一个脚本来测试测试应用程序中的十六进制版本。
您可以在此处查看源代码: https : //github.com/Overbryd/myhtmlex/tree/package-test
重现此步骤是:
mix hex.build
{:myhtmlex, path: "../local-tar-archive"}
根据该十六进制包创建一个新的测试应用程序 构建测试应用程序mix compile
但失败:
==> myhtmlex Compiling 3 files (.ex) ==> myhtmlex_pkg_test Unchecked dependencies for environment dev: * myhtmlex (../myhtmlex-local) could not find an app file at "_build/dev/lib/myhtmlex/ebin/myhtmlex.app". This may happen if the dependency was not yet compiled, or you specified the wrong application name in your deps, or the dependency indeed has no app file (then you can pass app: false as option) ** (Mix) Can't continue due to errors on dependencies
交叉发布自: https : //elixirforum.com/t/dependency-does-not-generate-app-file/12703
从hex >= 0.17.3
并使用mix hex.build --unpack -o package-test
直接为我解决了这个问题。
如果您想阅读有关此内容的详细信息,请在此处解决问题: https : //github.com/hexpm/hex/issues/515
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.