You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v4.29.0-rc2: all .olean files in release tarball are stamped with version 4.30.0-rc2 instead of 4.29.0-rc2 #12681
Every .olean file shipped in the v4.29.0-rc2 release tarball has the olean header version set to 4.30.0-rc2 rather than the expected 4.29.0-rc2. The lean binary itself reports the correct version.
Reproduction
# Install (or reinstall) the toolchain
elan toolchain install leanprover/lean4:v4.29.0-rc2
# Binary reports correctly:~/.elan/toolchains/leanprover--lean4---v4.29.0-rc2/bin/lean --version
# Lean (version 4.29.0-rc2, x86_64-unknown-linux-gnu, commit 83e54b65..., Release)# But olean headers say 4.30.0-rc2:
python3 -c "import ostoolchain = os.path.expanduser('~/.elan/toolchains/leanprover--lean4---v4.29.0-rc2/lib/lean')for name in ['Init.olean', 'Lean.olean', 'Lake.olean', 'Std/Sync/Basic.olean', 'Init/Prelude.olean']: path = os.path.join(toolchain, name) with open(path, 'rb') as f: hdr = f.read(64) ver = bytes(b for b in hdr[7:] if b).decode() print(f'{name}: {ver}')"
Lean itself works fine — lake build succeeds for projects using v4.29.0-rc2 because Lean loads .olean.private files internally, not the plain .olean files.
Downstream tooling is affected — any tool that reads .olean headers to validate cache consistency against the toolchain version will see a mismatch and may incorrectly mark the system library files as contaminated.
Environment
Platform: x86_64-unknown-linux-gnu
Installed via: elan toolchain install leanprover/lean4:v4.29.0-rc2
Activity
fix: validate stage0 version matches release version
fix: validate stage0 version matches release version
fix: validate stage0 version matches release version (#12700)