Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to mix.exs directory before format
- Set the `default-directory` to where mix.exs is located, because mix is meant to be run from the project root directory. Also, mix format looks for .formatter.exs files in subdirectories. - If mix.exs is NOT found, the original `default-directory` and default formatter are used for mix format. - Create the temp file in the current directory, because mix format uses path patterns. See: - elixir-lang/elixir#7328 (comment) - elixir-lang/elixir#7398 (comment)
- Loading branch information
1 parent
9a38968
commit 60c4727
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters