Search code examples
elixirphoenix-frameworkelixir-mix

Use a local repository in Elixir?


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'

Solution

  • 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.