Zulip Chat Archive

Stream: general

Topic: Side project importing mathlib branch


Adam Topaz (Jan 22 2021 at 16:00):

Suppose I have a lean project I'm working on, which I do not intend ever integrating with mathlib. Suppose also that I want to use a (non-master) branch of mathlib in this project. What's the preferred workflow to accomplish this? Does leanproject have a flag that will create a project based importing a non-master branch of mathlib?

Johan Commelin (Jan 22 2021 at 16:01):

Personally, I would just manually lump the commit hash of mathlib into the leanpkg.toml

Rob Lewis (Jan 22 2021 at 16:01):

And don't run leanproject up

Adam Topaz (Jan 22 2021 at 16:01):

Okay. So how would I use leanproject to get the oleans for the particular hash?

Johan Commelin (Jan 22 2021 at 16:02):

leanproject get-mathlib-cache

Adam Topaz (Jan 22 2021 at 16:02):

is it leanproject get-mathlib-cache?

Rob Lewis (Jan 22 2021 at 16:02):

leanproject get-mathlib-cache

Adam Topaz (Jan 22 2021 at 16:02):

:smile:

Adam Topaz (Jan 22 2021 at 16:02):

Thanks!

Adam Topaz (Jan 22 2021 at 16:03):

(cc: @Colter MacDonald )


Last updated: Dec 20 2023 at 11:08 UTC