elixir依赖性不会生成应用程序文件



我即将发布我的myhtmlex库的 0.2.0。但是我在测试新软件包版本时遇到了麻烦,因为测试应用程序没有生成应用程序文件。

,为了测试我的集成,我编写了一个脚本来测试我的十六进制释放。

您可以在此处检查来源:https://github.com/overbryd/myhtmlex/tree/package-test

复制这一点的步骤是:

  1. 构建HEX软件包mix hex.build
  2. 解开所得的tar架构
  3. 根据{:myhtmlex, path: "../local-tar-archive"}
  4. 的十六进制软件包创建新的测试应用程序
  5. 构建测试申请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
    

交叉post来自:https://elixirforum.com/t/depperency-does-not-generate-app-file/12703

hex >= 0.17.3开始,然后使用mix hex.build --unpack -o package-test直接解决此问题。

如果您想阅读此信息的详细信息,则此处解决了:https://github.com/hexpm/hex/hex/issues/515

相关内容

最新更新