Zulip Chat Archive

Stream: lean4

Topic: Version in lake-manifest.json


Yaël Dillies (Feb 12 2025 at 10:27):

What does "version" : "1.1.0" mean in the manifest of a Lean library? It looks like this value sometimes changes and is set automatically by lake update.

Yaël Dillies (Feb 12 2025 at 10:30):

Is it supposed to be the version number of the library, and if so is there any way to recover this information through lake? Eg can I make my library depend on a specific version of another one?

Marc Huisinga (Feb 12 2025 at 10:32):

It's the version of the Lake manifest format.

Kim Morrison (Feb 12 2025 at 13:10):

@Yaël Dillies, the manual describes how to specify versions of your package in the lakefile.toml:

https://lean-lang.org/doc/reference/latest/Build-Tools-and-Distribution/Lake/#The-Lean-Language-Reference--Build-Tools-and-Distribution--Lake--Configuration-File-Format--Declarative-TOML-Format--Package-Configuration

Kim Morrison (Feb 12 2025 at 13:13):

Actually following semver seems ... aspirational ... in the Lean ecosystem at the moment, and effectively Mathlib and all upstream packages are releasing "versions" in lock-step with Lean itself, naming their versions after the Lean version.

Yaël Dillies (Feb 12 2025 at 13:48):

Ah great! I managed to gloss over it


Last updated: May 02 2025 at 03:31 UTC