From 2bce11b7b1e1a6e76d5a121e81da9c4a05111b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Corr=C3=AAa=20de=20Oliveira?= Date: Fri, 12 Apr 2024 03:01:19 +0100 Subject: [PATCH] handle rakudo version error --- Changes | 2 ++ lib/Red.rakumod | 3 +++ t/23-metamodel-model.rakutest | 8 +++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 452e1e95..e3eada06 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Red {{$NEXT}} + - New incompatible rakudo version + - Skiping a test about migrations that's giving error on a specific rakudo version 0.1.70 2024-02-26T00:45:07Z - Last release had errors on the release process diff --git a/lib/Red.rakumod b/lib/Red.rakumod index ea6fcf5c..474ccdd7 100644 --- a/lib/Red.rakumod +++ b/lib/Red.rakumod @@ -50,6 +50,9 @@ my %unsupported-raku-versions{Version} = "that does `Positional` and `Sequence` roles and have attributes with initialisation,", "making it impossible to use `Red::ResultSeq`. Please update your Raku to use Red.", ], + v2024.03 => [ + "2024.03 has a bug that breaks ClassHOW does role. Please update your Raku to use Red.", + ], ; BEGIN { diff --git a/t/23-metamodel-model.rakutest b/t/23-metamodel-model.rakutest index 13ea5660..726642f5 100644 --- a/t/23-metamodel-model.rakutest +++ b/t/23-metamodel-model.rakutest @@ -59,7 +59,13 @@ is-deeply Ble.^columns>>.name.Set, set < $!a $!b $!c $!e >; is Bla.^migration-hash.elems, 1; is Bla.^migration-hash, "bla"; -is Bla.^migration-hash, v0; +# TODO: Remove skip when Raku 2024.03+ is fixed +# migration is not working anyway +if $*RAKU.compiler.version >= v2024.03 { + skip "Raku 2024.03+ has a bug", 1; +} else { + is Bla.^migration-hash, v0; +} is Ble.^migration-hash.elems, 4; is Ble.^migration-hash, "not-ble";