Commit d29f89e
fix(ci): align the Idris2 version assert with the pinned image (0.8.0) (#31)
Now that #30 made the assert diagnosable, the real mismatch is visible:
```
idris2 --version -> Idris 2, version 0.8.0-6ca00e72e
::error::expected Idris 2 0.7.0
```
The digest-pinned `idris2-pack` image ships **0.8.0**, so the `0.7.0`
assertion
could never have matched — `CI / required` has never passed on its own
terms.
This is the last red check on `main`.
## Which side is wrong?
Nothing in the repository actually requires 0.7.0:
- `abi.ipkg` declares **no version constraint** — it depends only on
`base`.
- The `idris2 0.7.0` line in `.tool-versions` is **commented out**, so
it pins nothing.
- The only 0.7.0 references were the workflow asserts and their
comments.
So "0.7.0" was stale documentation that drifted from the digest. The
**immutable
digest is the authority**, and the version notes are brought into step
with it
rather than the reverse. The typecheck now actually runs against the
toolchain
that is genuinely installed.
Also fixes the identical brittle assert in **`release.yml`**, which
piped
`idris2 --version` into `grep -Fx` under `pipefail` exactly as `ci.yml`
did — it
would have failed the same way, silently, on the next release.
## If 0.7.0 was intended
Then the fix is the other direction: re-pin the container to a 0.7.0
image digest.
Say so and I will swap it — but the current pair is contradictory either
way.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent cbcee72 commit d29f89e
3 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
0 commit comments