Skip to content

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

Closed

Description

@NicolasRouquette

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 os
toolchain = 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}')
"

Output:

Init.olean: 4.30.0-rc2
Lean.olean: 4.30.0-rc2
Lake.olean: 4.30.0-rc2
Std/Sync/Basic.olean: 4.30.0-rc2
Init/Prelude.olean: 4.30.0-rc2

Comparison with other releases

Toolchain Init.olean stamped as Match?
v4.28.0 4.28.0-pre ✓ (close enough)
v4.29.0-rc1 4.29.0-rc1 ✓
v4.29.0-rc2 4.30.0-rc2 ✗

Impact

  • 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
  • Tarball URL: https://releases.lean-lang.org/lean4/v4.29.0-rc2/lean-4.29.0-rc2-linux.tar.zst
  • Commit: 83e54b65b65d1d3ce31d99d820a7bd5f3e219295

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions