leanprover / leanprover/lean4

Lake: clone packages required from git repository's subdirectory using `--sparse`

Open
#2,773 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Lake P-medium RFC
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Proposal

When developing multiple small packages it might be useful to store them in a single repository.
Such packages can be required using require ... from git ... @ "..." / "subdir" syntax,
but each would come with a clone of the full repository wasting space.

Community Feedback

Discussion on zulip

Impact

Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating Lake's handling of git-based package requirements and review how repository subdirectories are currently cloned. Done should mean packages required from a git subdirectory can use sparse checkout without cloning unrelated repository contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.