Skip to content

Commit 78ba7aa

Browse files
committed
Run full load paths in mix format
1 parent 30cb58e commit 78ba7aa

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/mix/lib/mix/tasks/format.ex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ defmodule Mix.Tasks.Format do
200200
{formatter_opts_and_subs, _sources} =
201201
eval_deps_and_subdirectories(dot_formatter, [], formatter_opts, [dot_formatter])
202202

203-
# In case plugins are given, we need to reenable those tasks
204-
Mix.Task.reenable("loadpaths")
205-
Mix.Task.reenable("deps.loadpaths")
206-
207203
args
208204
|> expand_args(dot_formatter, formatter_opts_and_subs, opts)
209205
|> Task.async_stream(&format_file(&1, opts), ordered: false, timeout: 30000)
@@ -252,8 +248,6 @@ defmodule Mix.Tasks.Format do
252248
end
253249
end
254250

255-
@loadpath_args ["--no-elixir-version-check", "--no-deps-check", "--no-archives-check"]
256-
257251
# This function reads exported configuration from the imported
258252
# dependencies and subdirectories and deals with caching the result
259253
# of reading such configuration in a manifest file.
@@ -275,11 +269,11 @@ defmodule Mix.Tasks.Format do
275269
end
276270

277271
if plugins != [] do
278-
Mix.Task.run("loadpaths", @loadpath_args)
272+
Mix.Task.run("loadpaths", [])
279273
end
280274

281275
if not Enum.all?(plugins, &Code.ensure_loaded?/1) do
282-
Mix.Task.run("compile", @loadpath_args)
276+
Mix.Task.run("compile", [])
283277
end
284278

285279
for plugin <- plugins do

0 commit comments

Comments
 (0)