Zulip Chat Archive

Stream: new members

Topic: Errors upgrading Mathlib


Arien Malec (May 24 2024 at 19:31):

trying to update a project with a Mathlib dependency:

% lake clean
% lake update
mathlib: updating repository './.lake/packages/mathlib' to revision '01ef982a4a351333dd04533573c4d489cd2164a3'
error: ./.lake/packages/mathlib/lakefile.lean:79:2: error: unknown attribute [test_runner]
error: ./.lake/packages/mathlib/lakefile.lean: package configuration has errors

Ruben Van de Velde (May 24 2024 at 19:46):

Copy .lake/packages/mathlib/lean-toolchain over yours and try again

Arien Malec (May 24 2024 at 19:52):

So simple! No automated way to keep them in synch?

Ruben Van de Velde (May 24 2024 at 20:21):

It is automatic (when updating mathlib) - but only if the lean version you were using can interpret the lakefile.lean from the new mathlib

Ruben Van de Velde (May 24 2024 at 20:22):

That's one of the disadvantages of writing your build configuration in a full lean file


Last updated: May 02 2025 at 03:31 UTC