From 0d3148264799f38227b97791999a2f337b4aff0e Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 24 Jun 2024 13:35:02 +0200 Subject: [PATCH] Use newer rebar3_hex with new Erlang, but Erlang 20 requires 7.0.7 --- rebar.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index d3c32650a..7f7b77622 100644 --- a/rebar.config +++ b/rebar.config @@ -144,7 +144,9 @@ {if_rebar3, sql}, {if_var_true, tools, tools}]}]}. -{if_rebar3, {plugins, [rebar3_hex, {provider_asn1, "0.2.0"}, +{if_rebar3, {plugins, [{if_version_below, "21", {rebar3_hex, "7.0.7"}}, + {if_version_above, "20", {rebar3_hex, "~> 7.0.8"}}, + {provider_asn1, "0.2.0"}, %% Protocol consolidation doesn't work correctly in upstream rebar_mix, see %% https://github.com/Supersonido/rebar_mix/issues/27#issuecomment-894873335 %% Let's use this fixed rebar_mix fork, see its PR: