Skip to content

Commit d9d7015

Browse files
wojtekmachjosevalim
authored andcommitted
Mix.install/2: Recover from deps.get failures (#10958)
1 parent a582bd9 commit d9d7015

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mix/lib/mix.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,12 +569,12 @@ defmodule Mix do
569569
:ok = Mix.ProjectStack.push(__MODULE__.InstallProject, config, "nofile")
570570

571571
try do
572-
dir? = File.dir?(dir)
572+
run_deps? = not File.dir?(Path.join(dir, "_build"))
573573
File.mkdir_p!(dir)
574574

575575
File.cd!(dir, fn ->
576-
unless dir? do
577-
Mix.Task.run("deps.get")
576+
if run_deps? do
577+
Mix.Task.rerun("deps.get")
578578
end
579579

580580
Mix.Task.run("compile")

0 commit comments

Comments
 (0)