Skip to content

fix: reference-manual breakage from elan v4.5.0 (elan#218) - #297

Merged
Kha merged 1 commit into
masterfrom
push-smnnovvswvpx
Nov 30, 2026
Merged

Kha merged 1 commit into
masterfrom
push-smnnovvswvpx

Conversation

@downstream-lean4

Copy link
Copy Markdown
Contributor

Fixes the red reference-manual build in run 46401259138.

reference-manual

elan v4.5.0, released on 2026-11-30 at 10:00Z, reworded the DISCUSSION section of elan toolchain --help (leanprover/elan#218). A token for a custom origin can now also come from the GitHub CLI, and github_token_source in settings.toml or ELAN_GITHUB_TOKEN_SOURCE turns that off.

Manual/BuildTools/Elan.lean pins that output word for word in its elanHelp "toolchain" block, so the block stopped matching. This commit updates the block to the v4.5.0 text. It also extends the prose on origins and access tokens, which until now described only the two environment variables.

The nightly bump is not the cause. CI installs the latest elan on every run, so run 46398010865 at 10:13Z already used v4.5.0 and stayed green. That run unpacked Manual.BuildTools.Elan from the cache, so the comparison never ran. The toolchain bump changed the cache scope, the module compiled again, and the mismatch appeared. Every new elan release does this at the next cache miss.

What passed locally

lake build of reference-manual completes with 1689 jobs, the same count as CI, with elan 4.5.0 first on PATH. That build replayed the edited module from a local artifact. Manual.BuildTools.Elan was therefore also compiled on its own after a source perturbation, which runs the comparison against elan 4.5.0 for real. It passed in 1.8s with no diagnostics.

reference-manual defines no test and no lint phase, so build is the only phase. The build report of the last green run records both of the others as skipped.

Nothing was left unfinished. This one module was the whole red set of the run.

🤖 Generated with Claude Code

`elan` 4.5.0 reworded the access-token paragraph in the `DISCUSSION`
section of `elan toolchain --help`. A token may now also come from the
GitHub CLI (`gh auth token`), and `github_token_source` in
`settings.toml` or `ELAN_GITHUB_TOKEN_SOURCE` turns that off
(leanprover/elan#218).

`Manual/BuildTools/Elan.lean` pins that output verbatim in its
`elanHelp "toolchain"` block, so the block no longer matched. Update it
to the 4.5.0 text, and extend the prose on origins and access tokens,
which so far described only the two environment variables.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@downstream-lean4
downstream-lean4 Bot requested a review from Kha November 30, 2026 12:31
@downstream-lean4

Copy link
Copy Markdown
Contributor Author

Build report for fix: reference-manual breakage from elan v4.5.0 (elan#218)

Turned green:

Repo Critical Build Test Lint
reference-manual ✅ ✅ in 5s ⏭️ ⏭️
Stayed green
Repo Critical Build Test Lint
aesop ✅ ✅ in 0s ✅ in 3s ⏭️
batteries ✅ ✅ in 0s ✅ in 3s ✅ in 1s
import-graph ✅ ✅ in 2s ✅ in 4s ⏭️
lean4-cli ✅ ✅ in 0s ✅ in 0s ⏭️
mathlib4 ✅ ✅ in 10m 50s ✅ in 30s ✅ in 26s
plausible ✅ ✅ in 0s ✅ in 2s ⏭️
ProofWidgets4 ✅ ✅ in 1s ✅ in 1s ⏭️
quote4 ✅ ✅ in 0s ✅ in 1s ⏭️
BibtexQuery ✅ in 1s ⏭️ ⏭️
cslib ✅ in 23s ✅ in 10s ✅ in 2s
doc-gen4 ✅ in 1s ⏭️ ⏭️
illuminate ✅ in 0s ✅ in 9s ⏭️
lean4-unicode-basic ✅ in 1s ⏭️ ⏭️
LeanSearchClient ✅ in 0s ✅ in 0s ⏭️
leansqlite ✅ in 3s ✅ in 20s ⏭️
nerodia ✅ in 0s ✅ in 24s ⏭️
repl ✅ in 0s ✅ in 39s ⏭️
verso ✅ in 17s ✅ in 3m 59s ⏭️
verso-slides ✅ in 4s ✅ in 9s ⏭️
verso-web-components ✅ in 0s ⏭️ ⏭️

View run

@Kha
Kha merged commit 0a8de60 into master Nov 30, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant