Skip to content

Commit d195b75

Browse files
authored
deps.check does not check archives
1 parent dc06a18 commit d195b75

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

lib/mix/lib/mix/tasks/deps.check.ex

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Mix.Tasks.Deps.Check do
55
format_status: 1, check_lock: 1]
66

77
@moduledoc """
8-
Checks if all dependencies (including archives) are valid,
8+
Checks if all dependencies are valid,
99
loading them along the way.
1010
1111
If there is an invalid dependency, its status is printed
@@ -14,7 +14,6 @@ defmodule Mix.Tasks.Deps.Check do
1414
## Command line options
1515
1616
* `--no-deps-check` - do not check or compile deps, only load available ones
17-
* `--no-deps-loading` - do not load dependencies
1817
* `--no-compile` - do not compile dependencies
1918
2019
"""
@@ -26,15 +25,13 @@ defmodule Mix.Tasks.Deps.Check do
2625
deps_check(all, "--no-compile" in args)
2726
end
2827

29-
unless "--no-deps-loading" in args do
30-
load_paths =
31-
for dep <- all, path <- Mix.Dep.load_paths(dep) do
32-
_ = Code.prepend_path(path)
33-
path
34-
end
28+
load_paths =
29+
for dep <- all, path <- Mix.Dep.load_paths(dep) do
30+
_ = Code.prepend_path(path)
31+
path
32+
end
3533

36-
prune_deps(load_paths, "--no-deps-check" in args)
37-
end
34+
prune_deps(load_paths, "--no-deps-check" in args)
3835
end
3936

4037
# If the build is per environment, we should be able to look

0 commit comments

Comments
 (0)