如何使用 Rebar3 从本地文件系统添加依赖项?

Nic*_*Saw 6 erlang rebar rebar3

我有两个 Erlang 应用程序:单个应用程序mylogger和伞应用程序myapp

我想包含 的当前版本作为mylogger的依赖项myapp

Rebar3 仅建议从 git 添加 deps,例如

{mylogger, {git, "https://github.com/someuser/mylogger", {branch, "master"}}}
Run Code Online (Sandbox Code Playgroud)

或来自 hex.pm。

如何从具有 rebar3 结构的文件系统添加我的自定义应用程序?

Jos*_*é M 4

使用结帐依赖项。如果您将应用程序添加到_checkouts文件夹中,它将执行以下操作。

Any application/plugin in _checkouts will take precedence over the same application if it is additionally listed in the rebar.config's deps, plugins or project_plugins

In the past there was an issue where the directory in _checkouts was used for the artifacts too, if I read the last release notes correctly, this was corrected already.