This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch remove-erlang-less-than-23
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0b7e8410aad8e72b4603d8f32f9bd03f37294709
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Fri Jun 17 17:23:35 2022 -0400

    Update rebar config to remove Erlang < 23 support
---
 rebar.config.script | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/rebar.config.script b/rebar.config.script
index 44c4d61b1..1aa16305a 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -80,14 +80,8 @@ BadErlang = fun(Ver) ->
 end.
 
 case VerList of
-    [OldVer | _] when OldVer < 19 -> ErlangTooOld(VerString);
-
-    [19 | _] -> NotSupported(VerString);
-
-    [20 | _] = V20 when V20 < [20, 3, 8, 11] -> BadErlang(VerString);
-    [21 | _] = V21 when V21 < [21, 2, 3] -> BadErlang(VerString);
-    [22, 0, N | _] when N < 5 -> BadErlang(VerString);
-
+    % Leave example around if we have to exlude specific versions
+    % [22, 0, N | _] when N < 5 -> BadErlang(VerString);
     _ -> ok
 end.
 
@@ -192,7 +186,7 @@ MakeDep = fun
 end.
 
 AddConfig = [
-    {require_otp_vsn, "20|21|22|23|24|25"},
+    {require_otp_vsn, "23|24|25"},
     {deps_dir, "src"},
     {deps, lists:map(MakeDep, DepDescs ++ OptionalDeps)},
     {sub_dirs, SubDirs},

Reply via email to