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 c028c2d commit 63d682bCopy full SHA for 63d682b
lib/mix/lib/mix/dep/loader.ex
@@ -90,6 +90,15 @@ defmodule Mix.Dep.Loader do
90
# 4. Inferred from files in dependency (mix.exs, rebar.config, Makefile)
91
manager = opts[:manager] || scm_manager(scm, opts) || manager || infer_manager(opts[:dest])
92
93
+ # TODO: Remove rebar2 support on Elixir v1.15+.
94
+ if manager == :rebar do
95
+ Mix.shell().error(
96
+ "dependency #{inspect(dep.app)} is using Rebar 2, " <>
97
+ "which is no longer maintained and no longer works in recent Erlang/OTP versions. " <>
98
+ "Remove the :manager option or set it to :rebar3 instead"
99
+ )
100
+ end
101
+
102
dep = %{dep | manager: manager, status: scm_status(scm, opts)}
103
104
{dep, children} =
0 commit comments