Use a local repository in Elixir?
Asked Answered
I

2

7

When including external repositories in your Phoenix Framework project, it is possible to pass a Github option:

 {:example, "~> 0.9.9", github: "somewhere/example"}

Is there an option to include a local repository, similar to the Rails convention in the Gemfile?

 gem 'somewhere', '0.0.2', :path => 'some/local/directory'
Immensity answered 28/8, 2015 at 21:20 Comment(0)
I
8

The parameter is just that, "path".

{:example, "~> 0.9.9", path: "some/local/directory"}

More of a Mix.Project question than a Phoenix question. See the mix deps docs for more info.

Immensity answered 28/8, 2015 at 22:24 Comment(0)
B
0

This is definitely related to mix and as Don suggests you can find the documentation for that here:

https://hexdocs.pm/mix/Mix.html

However, make sure you dig deeper on the command line by typing mix help deps as the link provided does not give an example of how to refer to a local dependency.

Its not until you view the command line help that you will see a relevant example.

Belly answered 27/7, 2017 at 18:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.