leanprover / leanprover/lean4

RFC: lake: add command to fetch dependency sources

Open
#5,342 2 comments 1 reaction 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

lake should provide a command (lake fetch?) that fetches the sources for all dependencies, without building them.

Currently, afaict, the only way to get the sources is to trigger a build of some facet.

Use case: I'm building a Docker image that should contain all source files needed to build some project, but no build artifacts.

Workaround: build the smallest dependency (e.g. lake build batteries), then remove its build outputs (rm -rf .lake/packages/batteries/.lake).

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

Start by examining the existing lake dependency-fetching and build command flow. Determine how a fetch-only operation should obtain all dependency sources without producing build artifacts; done means a documented command reliably supports the Docker use case.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.