Repository navigation
Commit cec156e
docs: the floor is stated TWICE, and the first guard only knew about one
The README states the Go minimum in two places:
line 7 []
line 716 Requires **Go 1.26.4+**.
Both were stale against `go 1.27.1`. The first revision of this branch fixed
the badge and added a guard -- and the guard swept for `go-1.x.y`, the shape I
had just corrected, so it was blind to the prose one. A peer session opened
#795 for the same defect and also touched only the badge. Two independent
passes, one line each, and the second statement would have survived both.
That is the failure worth recording: a guard written from the instance in front
of me rather than from the claim being made. It could only ever have caught
what I had already found.
So the guard now judges the CLAIM -- every statement of a minimum -- and not
the markup it wears. It also requires at least two such statements to exist, so
that deleting one silently stops being a way to pass.
It deliberately does NOT fail on every mention of a Go version, which is the
distinction #795's body draws and is right about: a dated measurement
("measured on Go 1.26.4") would be FALSIFIED by updating it, and "Go 1.26
introduced X" is a fact about when an API appeared. Neither tracks go.mod.
Only the two forms that state a minimum are matched. Those other two kinds do
not currently appear in this README -- `grep` finds exactly the two lines above
-- but the guard is written so that adding one later does not turn it red.
Proved to fail on the prose form, not only the badge:
README states a Go minimum of 1.26.4 in "Go 1.26.4+"; go.mod requires 1.27.1
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent e965ea5 commit cec156e
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
0 commit comments