Running Project Mix Commands from Any Directory
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.