@@ -35,13 +35,13 @@ defmodule Mix.Deps do
3535
3636 Inside Mix, those dependencies are converted to a `Mix.Dep` record.
3737 This module provides conveniences to work with those dependencies
38- and the dependencies are usually in two specific states: fetched and
39- unfetched .
38+ and the dependencies are usually in two specific states: loaded and
39+ unloaded .
4040
41- When a dependency is unfetched , it means Mix only parsed its specification
42- and made no attempt to actually fetch the dependency or validate its
43- status. When the dependency is fetched , it means Mix attempted to fetch
44- and validate it, the status is set in the status field.
41+ When a dependency is unloaded , it means Mix only parsed its specification
42+ and made no attempt to actually load the dependency or validate its
43+ status. When the dependency is loaded , it means Mix attempted to fetch,
44+ load and validate it, the status is set in the status field.
4545
4646 ## Mix options
4747
@@ -80,7 +80,7 @@ defmodule Mix.Deps do
8080 Returns all children dependencies for the current project,
8181 as well as the defined apps in case of umbrella projects.
8282 The children dependencies returned by this function were
83- not fetched yet.
83+ not loaded yet.
8484
8585 ## Exceptions
8686
@@ -90,28 +90,28 @@ defmodule Mix.Deps do
9090 defdelegate children(), to: Mix.Deps.Retriever
9191
9292 @doc " ""
93- Returns fetched dependencies recursively as a `Mix. Dep ` record.
93+ Returns loaded dependencies recursively as a `Mix. Dep ` record.
9494
9595 ## Exceptions
9696
9797 This function raises an exception if any of the dependencies
9898 provided in the project are in the wrong format .
9999 "" "
100- def fetched do
100+ def loaded do
101101 { deps, _ } = Mix.Deps.Converger.all(nil, fn(dep, acc) -> { dep, acc } end)
102102 Mix.Deps.Converger.topsort(deps)
103103 end
104104
105105 @doc " ""
106- Receives a list of dependency names and returns fetched dependency
106+ Receives a list of dependency names and returns loaded dependency
107107 records . Logs a message if the dependency could not be found .
108108
109109 ## Exceptions
110110
111111 This function raises an exception if any of the dependencies
112112 provided in the project are in the wrong format .
113113 "" "
114- def fetched_by_name (given, all_deps // fetched ) do
114+ def loaded_by_name (given, all_deps // loaded ) do
115115 # Ensure all apps are atoms
116116 apps = to_app_names(given)
117117
@@ -130,7 +130,7 @@ defmodule Mix.Deps do
130130 end
131131
132132 @ doc """
133- Maps and reduces over all unfetched dependencies, one by one.
133+ Maps and reduces over all unloaded dependencies, one by one.
134134
135135 This is useful in case you want to retrieve the dependency
136136 tree for a project but process and change them along the way.
@@ -145,7 +145,7 @@ defmodule Mix.Deps do
145145 This function raises an exception if any of the dependencies
146146 provided in the project are in the wrong format.
147147 """
148- def unfetched ( acc , callback ) do
148+ def unloaded ( acc , callback ) do
149149 { deps , acc } = Mix.Deps.Converger . all ( acc , callback )
150150 { Mix.Deps.Converger . topsort ( deps ) , acc }
151151 end
@@ -159,10 +159,10 @@ defmodule Mix.Deps do
159159 This function raises an exception if any of the dependencies
160160 provided in the project are in the wrong format.
161161 """
162- def unfetched_by_name ( given, acc , callback ) do
162+ def unloaded_by_name ( given, acc , callback ) do
163163 names = to_app_names( given)
164164
165- unfetched ( acc, fn ( dep, acc) ->
165+ unloaded ( acc, fn ( dep, acc) ->
166166 if dep. app in names do
167167 callback . ( dep , acc )
168168 else
@@ -177,7 +177,7 @@ defmodule Mix.Deps do
177177 project onto the project stack.
178178
179179 This function only works for mix dependencies.
180- It is expected a fetched dependency as argument.
180+ It is expected a loaded dependency as argument.
181181 """
182182 def in_dependency( dep, post_config // [ ] , fun )
183183
@@ -339,7 +339,7 @@ defmodule Mix.Deps do
339339
340340 @doc """
341341 Returns all load paths for the dependency.
342- Expects a fetched dependency.
342+ Expects a loaded dependency.
343343 "" "
344344 def load_paths(Mix.Dep[manager: :mix, opts: opts]) do
345345 [Path.join(opts[:build], " ebin ")]
@@ -388,7 +388,7 @@ defmodule Mix.Deps do
388388 @doc false
389389 # Called by deps.get and deps.update
390390 def finalize(all_deps, apps, lock, opts) do
391- deps = fetched_by_name (apps, all_deps)
391+ deps = loaded_by_name (apps, all_deps)
392392
393393 # Do not attempt to compile dependencies that are not available.
394394 # mix deps.check at the end will emit proper status in case they failed.
0 commit comments