Zulip Chat Archive
Stream: lean4
Topic: Shallow clones
Julian Berman (Jan 02 2022 at 15:09):
leanpkg
does not shallow clone dependencies, which means cloning mathlib as a dependency can be slower than it needs to be. Presumably it's not worth changing that, but is it worth considering for Lake?
Newish versions of git support doing this in ways that do not require looping (in case the commit requested is not a branch HEAD -- see e.g. here though not all git servers support it yet -- if a server didn't, ISTM it may be worth considering doing a clone with depth 5 or something and then falling back to full clone if it doesn't have the right commit)
Last updated: Dec 20 2023 at 11:08 UTC