Zulip Chat Archive
Stream: new members
Topic: How to work with a specific Mathlib commit
Jiatong Yang (Nov 05 2024 at 07:37):
I want to work with a specific Mathlib commit. How should I initialize my project?
Johan Commelin (Nov 05 2024 at 07:47):
Does the commit have a branch name, or a tag attached to it?
Johan Commelin (Nov 05 2024 at 07:47):
Otherwise you have to use the commit hash
Jiatong Yang (Nov 05 2024 at 07:52):
I have the commit hash, but I don't know what to do with my command line.
Jiatong Yang (Nov 05 2024 at 08:08):
I mean, by following the instructions on Using mathlib4 as a dependency · leanprover-community/mathlib4 Wiki. I will get the newest Mathlib. How can I create a project with the specific commit hash?
Ruben Van de Velde (Nov 05 2024 at 08:12):
You can do that, look for "master" in your lake file and replace that by your commit hash. Then hopefully lake update
will work
Last updated: May 02 2025 at 03:31 UTC