Zulip Chat Archive
Stream: general
Topic: Generating an olean cache locally
Frédéric Dupuis (Aug 24 2021 at 02:14):
Does anyone know if it's possible to generate an olean cache locally? I would like to be able to generate the tar.gz
file that leanproject get-cache
downloads from github without having to wait for CI. leanproject mk-cache
looks like it should be able to do this, but if so I have no idea where the file ends up. Any ideas?
Eric Wieser (Aug 24 2021 at 06:28):
Is this for mathlib itself or for another project depending on mathlib?
Eric Wieser (Aug 24 2021 at 06:31):
mk-cache
is the right tool for the job; in the former case the file ends up in ~/.mathlib
, in the latter case in :/_cache
.
Frédéric Dupuis (Aug 24 2021 at 12:01):
This is for mathlib itself. Somehow mk-cache
didn't do this when I tried it. I'll try again next time I compile locally.
Eric Wieser (Aug 24 2021 at 14:54):
I think it's just very slow
Frédéric Dupuis (Aug 24 2021 at 18:30):
Well, the command took a few seconds to complete, but then later when I tried to use leanproject get-cache
to restore those oleans, it failed to find them.
Eric Wieser (Aug 24 2021 at 19:04):
Did you make any commits in between?
Frédéric Dupuis (Aug 24 2021 at 19:19):
No! It must have been some kind of error on my part -- I'll just try it again next time I'm done compiling something locally.
Frédéric Dupuis (Aug 24 2021 at 20:37):
Now I see the problem: I have a version of leanproject that generates a tar.bz2
version of the cache but where get-cache
only looks for a tar.xz
file.
Eric Wieser (Aug 24 2021 at 20:58):
I assume it was an old version, and the latest release is fine?
Last updated: Dec 20 2023 at 11:08 UTC