From de8abc15a89224bdabeb4b817759d2d6c94de9ea Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 23 Feb 2022 21:52:09 +0100 Subject: [PATCH] Use jiffy 1.1.0 when erlang < 20 because it doesn't have string:split/2 --- rebar.config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index b0bc0412c..eb51d1295 100644 --- a/rebar.config +++ b/rebar.config @@ -37,7 +37,12 @@ {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.48"}}}, {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.32"}}}, {idna, ".*", {git, "https://github.com/benoitc/erlang-idna", {tag, "6.0.0"}}}, - {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "1.1.1"}}}, + {if_version_below, "20", + {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "1.1.0"}}} + }, + {if_version_above, "19", + {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "1.1.1"}}} + }, {jose, ".*", {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.1"}}}, {if_version_below, "22", {lager, ".*", {git, "https://github.com/erlang-lager/lager", {tag, "3.9.1"}}}