raz / commit b88a1710

commit
b88a17103b44629da10f5036f474c9d6ae2c0957
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
d9913064
check.sh: the compiler may follow an older report while it catches up

d991306 made the report 2026-10.11, but raz still says 10.10, which is
true, so the version check failed. The report names the version the
compiler follows, and check.sh takes that one when it is there.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

patch · log

2 files changed, +7 -2

doc/raz.md (history) modified +3 -2

@@ -11,8 +11,9 @@
1111
1212 This is version 2026-10.11 of the report; section 12 says what each
1313 version changed. It is a thaw the owner chose, for a language anyone
14-can build again, and it breaks programs written for 2026-10.10. The
15-compiler doesn't follow it yet: it still follows 2026-10.10.
14+can build again, and it breaks programs written for 2026-10.10.
15+The compiler follows version 2026-10.10 until it is brought to this
16+one.
1617
1718 The language is frozen, softly, from this version on: it changes only
1819 to mend a defect, and its library grows only by what breaks no program

test/check.sh (history) modified +4 -0

@@ -86,7 +86,11 @@
8686 fi
8787 done
8888 # the report's version is the one the compiler says it follows
89+# the version the compiler follows: the report's, or one it names while
90+# the compiler catches up
8991 want=$(sed -n 's/^This is version \([0-9.-]*\) of the report.*/\1/p' doc/raz.md)
92+lag=$(sed -n 's/^The compiler follows version \([0-9.-]*\) until.*/\1/p' doc/raz.md)
93+want=${lag:-$want}
9094 if ./raz --version | grep -qF "report $want"; then pass=$((pass + 1))
9195 else echo "FAIL raz --version: not report $want"; fail=$((fail + 1)); fi
9296