Zulip Chat Archive
Stream: lean4
Topic: Multiple lake packages in the same git repository?
Daniil Kisel (Oct 26 2023 at 17:29):
When a package depends on multiple packages from subdirectories of the same git repository, lake-packages
gets a clone per package. Is there a workaround? Or should I split the repository? (use case - similarly themed small interdependent libraries)
Mac Malone (Oct 26 2023 at 17:35):
I believe it would be possible to have Lake clone such packages via --sparse
and perform a sparse checkout of the particular subdirectory (along with maybe a --filter
). So, it is probably worth making an issue requesting this feature on the Lean 4 repository. Some caveats here are that this would raise the required Git version for Lake to something much newer and that Git's support for this is still not bullet-proof (see StackExchange questions like (1) and (2)).
Daniil Kisel (Oct 26 2023 at 17:39):
Should I use the RFC template for feature requests?
Mac Malone (Oct 26 2023 at 17:40):
Or the bug one, either is probably fine for this.
Daniil Kisel (Oct 26 2023 at 17:49):
Done: lean4#2773.
Last updated: Dec 20 2023 at 11:08 UTC