【问题标题】:Mustache conflict at release build发布版本时的胡子冲突
【发布时间】:2013-12-22 07:29:09
【问题描述】:

我在我的项目中使用了 wooga 的 mustache.erl (https://github.com/wooga/mustache.erl) 分支。当我尝试创建发布时,我收到一个错误,因为 rebar 使用这个 mustache.beam 文件而不是其源中包含的文件。 我应该怎么做才能解决这个冲突?

【问题讨论】:

标签: erlang rebar


【解决方案1】:

原因不在rebar 中,而是因为发布工具搜索路径中的某些应用程序包含mustache.erl 文件,就像您发布的那样。 通常rel.config 文件包含{lib_dirs, ["../.."]} 强制发布工具搜索库(应用程序)到您的发布目录。请参见下面的示例。要修复它,请移动您的发布目录 dipper(例如 -> you_release/you_release)或将包含相同文件 (mustache.erl) 的应用程序移动到其他位置。

├── your_release_directory
│   ├── deps
│   │   └── mustache
│   │       ├── ebin
│   │       │   ├── mustache.app
│   │       │   └── mustache.beam
│   │       └── src
│   │           ├── mustache.app.src
│   │           └── mustache.erl
│   ├── ebin
│   │   └── mustache.beam
├── rebar (or any other app contains mustache.erl)
│   ├── ebin
│   │   └── mustache.beam
│   ├── src
│   │   └── mustache.erl

【讨论】:

    猜你喜欢
    • 2019-08-07
    • 2020-07-16
    • 2016-01-09
    • 1970-01-01
    • 2015-11-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多