Running Project Mix Commands from Any Directory

By Erlang Central | Published: February 6, 2017

While adding Credo as supported linter on Hound, I ran into a problem that I hadn’t seen before. I needed to run mix credo in a temporary directory, but soon discovered Mix only searches the current directory for a .mix.exs. What this means is that you can only run mix from the root of your project if you depend on any configuration or dependencies in your mix.exs file. In most cases this isn’t a problem, but for how Hound works, it introduced a challenge.

Follow Erlang Central:

Have an Erlang Question?

Reach out to the Erlang community