Commit 7f6cb79
authored
fix(ci): repair the Coq gate on main — coqc not found (#711)
## Problem
The Coq Proof Gate has been **failing on `main`** since `ed4e223` with
`coqc: not found`.
PR #709 merged the *pre-fix* revision of the workflow. The fix was
already
written and verified on the PR branch (`af7c38c`) but was not part of
the
squash, so `main` received the broken version.
## Causes (both reproduced locally against the digest-pinned image)
1. **Entrypoint override.** The `coqorg` images install Coq into an opam
switch
owned by the `coq` user and put it on `PATH` via an `ENTRYPOINT`
wrapper.
GitHub Actions overrides the entrypoint for job containers, so that
wrapper
never runs. The switch is now added explicitly — *globbed* rather than
hard-coded, so an image bump cannot silently break it, and failing
loudly if
it cannot be located.
2. **Shell fallback.** GitHub used `sh -e {0}` (dash), which rejects
`set -o pipefail` and the bash-only string operations the gate relies
on.
The image ships bash 5.2, so the shell is now declared explicitly rather
than left to runner detection.
## Verification
Already proven green via `workflow_dispatch` on the branch:
```
added /home/coq/.opam/4.13.1+flambda/bin to PATH
The Coq Proof Assistant, version 8.20.1
count=20
completeness guard: PASS
OK: all proofs mechanised; no axioms.
```
All 11 steps succeeded. The same logic was also run locally inside the
pinned
container under podman before first push.
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
40 | 64 | | |
41 | 65 | | |
42 | 66 | | |
| |||
0 commit comments