How to add a dependency from my local file system with Rebar3?

1.1k views Asked by At

I have two Erlang applications: single app mylogger and umbrella app myapp.

I want to include a current version of mylogger as a dependency to myapp.

Rebar3 only suggests to add deps from git like

{mylogger, {git, "https://github.com/someuser/mylogger", {branch, "master"}}}

or from hex.pm.

How to add my custom app from the file system with rebar3 structure?

1

There are 1 answers

0
José M On

Use checkouts dependencies. If you add your application in the _checkouts folder it will do the following.

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.