Elixir依赖项不生成应用程序文件

Elixir依赖项不生成应用程序文件,elixir,elixir-mix,hex-pm,Elixir,Elixir Mix,Hex Pm,我即将发布myhtmlex库的0.2.0。 但是我在测试我的新软件包版本时遇到了问题,因为测试应用程序没有生成应用程序文件 为了测试我的集成,我编写了一个脚本,在测试应用程序中测试我的十六进制版本 您可以在此处查看来源: 重现这一点的步骤如下: 构建十六进制包mix hex.Build 解压缩生成的tar归档文件 使用{:myhtmlex,路径:“../localtararchive”} 构建测试应用程序mix compile,但在以下情况下失败: ==> myhtmlex Compili

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

为了测试我的集成,我编写了一个脚本,在测试应用程序中测试我的十六进制版本

您可以在此处查看来源:

重现这一点的步骤如下:

  • 构建十六进制包
    mix hex.Build
  • 解压缩生成的tar归档文件
  • 使用
    {:myhtmlex,路径:“../localtararchive”}
  • 构建测试应用程序
    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
    

  • 交叉发布自:

    hex>=0.17.3开始,使用
    mix hex.build--unpack-o package test
    直接为我解决了这个问题


    如果您想了解这方面的详细信息,问题已在此处解决:

    分支不再存在。可能是时间戳问题吗?Mix认为项目已经编译,它正在尝试读取不存在的.app文件。还有,你为什么不使用elixir_make来处理makefile位?我可以确定一个“bug”或时间戳问题,这在这里得到了解决:
    长生不老药制作
    听起来很棒:)谢谢José指出这一点。