[英]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.