Skip to content

Commit eca807d

Browse files
committed
Also pass --no-listeners to deps.loadpaths
1 parent 7da33db commit eca807d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/mix/tasks/hex.audit.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule Mix.Tasks.Hex.Audit do
2121

2222
@impl true
2323
def run(_) do
24-
Mix.Tasks.Deps.Loadpaths.run(["--no-compile"])
24+
Mix.Tasks.Deps.Loadpaths.run(["--no-compile", "--no-listeners"])
2525
Hex.start()
2626
Registry.open()
2727

lib/mix/tasks/hex.outdated.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule Mix.Tasks.Hex.Outdated do
5252

5353
@impl true
5454
def run(args) do
55-
Mix.Tasks.Deps.Loadpaths.run(["--no-compile"])
55+
Mix.Tasks.Deps.Loadpaths.run(["--no-compile", "--no-listeners"])
5656
Hex.start()
5757
{opts, args} = OptionParser.parse!(args, strict: @switches)
5858
Registry.open()

lib/mix/tasks/hex.package.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ defmodule Mix.Tasks.Hex.Package do
229229
end
230230

231231
defp diff(repo, app, version) when is_binary(version) do
232-
Mix.Tasks.Deps.Loadpaths.run(["--no-compile"])
232+
Mix.Tasks.Deps.Loadpaths.run(["--no-compile", "--no-listeners"])
233233

234234
{path_lock, package} =
235235
case Map.get(Mix.Dep.Lock.read(), String.to_atom(app)) do

lib/mix/tasks/hex.publish.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ defmodule Mix.Tasks.Hex.Publish do
7171

7272
@impl true
7373
def run(args) do
74-
Mix.Tasks.Deps.Loadpaths.run(["--no-compile"])
74+
Mix.Tasks.Deps.Loadpaths.run(["--no-compile", "--no-listeners"])
7575
Hex.start()
7676
{opts, args} = OptionParser.parse!(args, strict: @switches)
7777

lib/mix/tasks/hex.sponsor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule Mix.Tasks.Hex.Sponsor do
3232
)
3333
end
3434

35-
Mix.Tasks.Deps.Loadpaths.run(["--no-compile"])
35+
Mix.Tasks.Deps.Loadpaths.run(["--no-compile", "--no-listeners"])
3636

3737
sponsor_links =
3838
Mix.Dep.Lock.read()

0 commit comments

Comments
 (0)