Skip to content

Commit 263f0d1

Browse files
author
José Valim
committed
Rename Mix.Deps.Retriever to Mix.Deps.Loader
1 parent 47ae5b4 commit 263f0d1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/mix/lib/mix/deps.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ defmodule Mix.Deps do
8787
This function raises an exception if any of the dependencies
8888
provided in the project are in the wrong format.
8989
"""
90-
defdelegate children(), to: Mix.Deps.Retriever
90+
defdelegate children(), to: Mix.Deps.Loader
9191
9292
@doc """
9393
Returns loaded dependencies recursively as a `Mix.Dep` record.

lib/mix/lib/mix/deps/converger.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule Mix.Deps.Converger do
4040
an updated depedency in case some processing is done.
4141
"""
4242
def all(rest, callback) do
43-
main = Mix.Deps.Retriever.children
43+
main = Mix.Deps.Loader.children
4444
apps = Enum.map(main, &(&1.app))
4545
all(main, [], [], apps, callback, rest)
4646
end
@@ -94,7 +94,7 @@ defmodule Mix.Deps.Converger do
9494
# After we invoke the callback (which may actually check out the
9595
# dependency), we load the dependency including its latest info
9696
# and children information.
97-
{ dep, children } = Mix.Deps.Retriever.load(dep)
97+
{ dep, children } = Mix.Deps.Loader.load(dep)
9898
children = reject_non_fullfilled_optional(children, current_breadths)
9999
dep = dep.deps(Enum.map(children, &(&1.app)))
100100

@@ -152,7 +152,7 @@ defmodule Mix.Deps.Converger do
152152
defp with_matching_req(Mix.Dep[] = other, Mix.Dep[] = dep) do
153153
case other.status do
154154
{ :ok, vsn } when not nil?(vsn) ->
155-
if Mix.Deps.Retriever.vsn_match?(dep.requirement, vsn) do
155+
if Mix.Deps.Loader.vsn_match?(dep.requirement, vsn) do
156156
other
157157
else
158158
other.status({ :divergedreq, dep })

lib/mix/lib/mix/deps/retriever.ex renamed to lib/mix/lib/mix/deps/loader.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This module is responsible for retrieving
2-
# dependencies of a given project. This
3-
# module and its functions are private to Mix.
4-
defmodule Mix.Deps.Retriever do
1+
# This module is responsible for loading dependencies
2+
# of the current project. This module and its functions
3+
# are private to Mix.
4+
defmodule Mix.Deps.Loader do
55
@moduledoc false
66

77
@doc """

lib/mix/lib/mix/deps/umbrella.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defmodule Mix.Deps.Umbrella do
2929
apps = Enum.map(deps, &(&1.app))
3030

3131
Enum.map(deps, fn(umbrella_dep) ->
32-
{ umbrella_dep, deps } = Mix.Deps.Retriever.load(umbrella_dep)
32+
{ umbrella_dep, deps } = Mix.Deps.Loader.load(umbrella_dep)
3333
deps = lc Mix.Dep[] = dep inlist deps,
3434
Mix.Deps.available?(dep),
3535
dep.app in apps,

0 commit comments

Comments
 (0)