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>
| @@ -11,8 +11,9 @@ | ||
| 11 | 11 | |
| 12 | 12 | This is version 2026-10.11 of the report; section 12 says what each |
| 13 | 13 | 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. | |
| 16 | 17 | |
| 17 | 18 | The language is frozen, softly, from this version on: it changes only |
| 18 | 19 | to mend a defect, and its library grows only by what breaks no program |
| @@ -86,7 +86,11 @@ | ||
| 86 | 86 | fi |
| 87 | 87 | done |
| 88 | 88 | # 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 | |
| 89 | 91 | 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} | |
| 90 | 94 | if ./raz --version | grep -qF "report $want"; then pass=$((pass + 1)) |
| 91 | 95 | else echo "FAIL raz --version: not report $want"; fail=$((fail + 1)); fi |
| 92 | 96 |