Skip to content

Commit 6df3c08

Browse files
committed
Avoid ambiguous up to date working on deps.get
1 parent e4f7ee4 commit 6df3c08

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/mix/lib/mix/tasks/deps.get.ex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
defmodule Mix.Tasks.Deps.Get do
22
use Mix.Task
33

4-
@shortdoc "Gets all out of date dependencies"
4+
@shortdoc "Fetches unavailable and out of date dependencies"
55

66
@moduledoc """
7-
Gets all out of date dependencies, i.e. dependencies
8-
that are not available or have an invalid lock.
7+
Fetches unavailable and out of date dependencies.
98
109
## Command line options
1110
@@ -40,7 +39,7 @@ defmodule Mix.Tasks.Deps.Get do
4039
apps = Mix.Dep.Fetcher.all(%{}, Mix.Dep.Lock.read(), fetch_opts)
4140

4241
if apps == [] do
43-
Mix.shell().info("All dependencies are up to date")
42+
Mix.shell().info("All dependencies have been fetched")
4443
else
4544
:ok
4645
end

lib/mix/test/mix/tasks/deps.git_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ defmodule Mix.Tasks.DepsGitTest do
207207
purge([GitRepo, GitRepo.MixProject])
208208
end
209209

210-
test "all dependencies are up to date" do
210+
test "all dependencies have been fetched" do
211211
in_fixture("no_mixfile", fn ->
212212
Mix.Project.push(GitApp)
213213

@@ -216,7 +216,7 @@ defmodule Mix.Tasks.DepsGitTest do
216216
assert_received {:mix_shell, :info, [^message]}
217217

218218
Mix.Tasks.Deps.Get.run([])
219-
assert_received {:mix_shell, :info, ["All dependencies are up to date"]}
219+
assert_received {:mix_shell, :info, ["All dependencies have been fetched"]}
220220
end)
221221
after
222222
purge([GitRepo, GitRepo.MixProject])

0 commit comments

Comments
 (0)