@@ -3,13 +3,8 @@ defmodule Mix.Dep.Umbrella do
33
44 @ doc """
55 Gets all umbrella dependencies in unloaded format.
6-
7- The environment is required and usually is set to
8- `Mix.env` (i.e. the same environment as the parent
9- project). However, it may be nil when invoked by
10- the fetcher so all deps are fetched recursively.
116 """
12- def unloaded ( env ) do
7+ def unloaded do
138 config = Mix.Project . config
149
1510 if apps_path = config [ :apps_path ] do
@@ -19,7 +14,7 @@ defmodule Mix.Dep.Umbrella do
1914 paths
2015 |> extract_umbrella
2116 |> filter_umbrella ( config [ :apps ] )
22- |> to_umbrella_dep ( build , Path . absname ( "mix.exs" ) , env )
17+ |> to_umbrella_dep ( build , Path . absname ( "mix.exs" ) )
2318 else
2419 [ ]
2520 end
@@ -29,7 +24,7 @@ defmodule Mix.Dep.Umbrella do
2924 Gets all umbrella dependencies in the loaded format.
3025 """
3126 def loaded do
32- deps = unloaded ( Mix . env )
27+ deps = unloaded
3328 apps = Enum . map ( deps , & ( & 1 . app ) )
3429
3530 Enum . map ( deps , fn umbrella_dep ->
@@ -53,10 +48,10 @@ defmodule Mix.Dep.Umbrella do
5348 for { app , _ } = pair <- pairs , app in apps , do: pair
5449 end
5550
56- defp to_umbrella_dep ( paths , build , from , env ) do
51+ defp to_umbrella_dep ( paths , build , from ) do
5752 Enum . map paths , fn ( { app , path } ) ->
5853 opts = [ path: path , dest: Path . expand ( path ) , from_umbrella: true ,
59- env: env , build: Path . join ( [ build , "lib" , Atom . to_string ( app ) ] ) ]
54+ env: Mix . env , build: Path . join ( [ build , "lib" , Atom . to_string ( app ) ] ) ]
6055 % Mix.Dep {
6156 scm: Mix.SCM.Path ,
6257 app: app ,
0 commit comments