Zulip Chat Archive

Stream: new members

Topic: Developing on mathlib itself


Yakov Pechersky (Jun 10 2020 at 19:21):

Let's say I'm trying to develop a new lemma for mathlib itself (thanks @Bryan Gin-ge Chen for the invite). Do I use leanproject get-mathlib-cache after every git pull, when trying to stay up-to-date with top-of-tree?

Kevin Buzzard (Jun 10 2020 at 19:23):

I just do leanproject up once, make a new branch, and then don't update mathlib any more when developing.

Kevin Buzzard (Jun 10 2020 at 19:23):

I would never do git pull because that would put me in a situation where I had an uncompiled mathlib, and I don't have 2 hours to spare

Bryan Gin-ge Chen (Jun 10 2020 at 19:25):

A common task is git fetch && git merge origin/master to update your branch, fix merge conflicts locally, and then git push to let Github actions build mathlib for you. After an hour or so, leanproject up should be able to fetch working oleans.


Last updated: Dec 20 2023 at 11:08 UTC