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 83c68ce commit 2e7bb9bCopy full SHA for 2e7bb9b
lib/mix/lib/mix/tasks/deps.compile.ex
@@ -102,8 +102,11 @@ defmodule Mix.Tasks.Deps.Compile do
102
103
count = System.get_env("MIX_OS_DEPS_COMPILE_PARTITION_COUNT", "0") |> String.to_integer()
104
105
+ # If all dependencies are local and ok, do not bother starting
106
+ # processes as it will likely slow everything down.
107
compiled? =
- if count > 1 and length(deps) > 1 do
108
+ if count > 1 and match?([_, _ | _], deps) and
109
+ not Enum.all?(deps, &(Mix.Dep.ok?(&1) and not &1.scm.fetchable?())) do
110
Mix.shell().info("mix deps.compile running across #{count} OS processes")
111
Mix.Tasks.Deps.Partition.server(deps, count, force?)
112
else
0 commit comments