Skip to content

Commit e7b235f

Browse files
committed
Do not run listeners when not checking the deps
1 parent c5c87a6 commit e7b235f

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

lib/mix/lib/mix/tasks/clean.ex

+7-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ defmodule Mix.Tasks.Clean do
7070

7171
# Loadpaths without checks because compilers may be defined in deps.
7272
defp loadpaths! do
73-
options = ["--no-elixir-version-check", "--no-deps-check", "--no-archives-check"]
73+
options = [
74+
"--no-elixir-version-check",
75+
"--no-deps-check",
76+
"--no-archives-check",
77+
"--no-listeners"
78+
]
79+
7480
Mix.Task.run("loadpaths", options)
7581
Mix.Task.reenable("loadpaths")
7682
Mix.Task.reenable("deps.loadpaths")

lib/mix/lib/mix/tasks/compile.ex

+7-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ defmodule Mix.Tasks.Compile do
8585
@impl true
8686
def run(["--list"]) do
8787
# Loadpaths without checks because compilers may be defined in deps.
88-
args = ["--no-elixir-version-check", "--no-deps-check", "--no-archives-check"]
88+
args = [
89+
"--no-elixir-version-check",
90+
"--no-deps-check",
91+
"--no-archives-check",
92+
"--no-listeners"
93+
]
94+
8995
Mix.Task.run("loadpaths", args)
9096
Mix.Task.reenable("loadpaths")
9197
Mix.Task.reenable("deps.loadpaths")

lib/mix/lib/mix/tasks/help.ex

+7-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,13 @@ defmodule Mix.Tasks.Help do
147147

148148
# Loadpaths without checks because tasks may be defined in deps.
149149
defp loadpaths! do
150-
args = ["--no-elixir-version-check", "--no-deps-check", "--no-archives-check"]
150+
args = [
151+
"--no-elixir-version-check",
152+
"--no-deps-check",
153+
"--no-archives-check",
154+
"--no-listeners"
155+
]
156+
151157
Mix.Task.run("loadpaths", args)
152158
Mix.Task.reenable("loadpaths")
153159
Mix.Task.reenable("deps.loadpaths")

0 commit comments

Comments
 (0)