簡體   English   中英

Elixir依賴關系不會生成應用程序文件

[英]Elixir dependency does not generate app file

我即將發布myhtmlex庫的0.2.0 但是我在測試新的程序包版本時遇到了麻煩,因為測試應用程序不會生成應用程序文件。

為了測試集成,我編寫了一個腳本來測試測試應用程序中的十六進制版本。

您可以在此處查看源代碼: https : //github.com/Overbryd/myhtmlex/tree/package-test

重現此步驟是:

  1. 構建十六進制包mix hex.build
  2. 解壓生成的tar歸檔文件
  3. 使用{:myhtmlex, path: "../local-tar-archive"}根據該十六進制包創建一個新的測試應用程序
  4. 構建測試應用程序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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM