We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 523b7f1 commit e0c312bCopy full SHA for e0c312b
lib/mix/test/mix/deps_test.exs
@@ -67,6 +67,21 @@ defmodule Mix.DepsTest do
67
Mix.Project.pop
68
end
69
70
+ test "does not set the manager before the dependency was fetched" do
71
+ # It is important to not eagerly set the manager because the dependency
72
+ # needs to be fetched (i.e. available in the filesystem) in order to get
73
+ # the proper manager.
74
+ Mix.Project.push DepsApp
75
+
76
+ { _, true } =
77
+ Mix.Deps.unfetched(false, fn dep, acc ->
78
+ assert nil?(dep.manager)
79
+ { dep, acc or true }
80
+ end)
81
+ after
82
+ Mix.Project.pop
83
+ end
84
85
defmodule ConvergedDepsApp do
86
def project do
87
[
0 commit comments