Reusable package directory or reusable environment
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 9.2k
- Forks
- 990
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 175
Description
What would be the equivalent of a reusable virtual environment in Python or setting export CARGO_TARGET_DIR="$HOME/shared_rust_target" in Rust for LEAN/mathlib?
When I use lake exe cache get in a project with just mathlib it ends up with 7GB!!!
How can I configure a user-wide (so not setting a path package one by one in lake-manifest.json) setting to let me point a project's build to a shared target directory, and thus not have each project replicate 7GB of mathlib .olean files?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the space usage with lake exe cache get in a project that uses mathlib, then inspect how package paths are configured through lake-manifest.json. Done means a user-wide setting can point multiple projects at shared build artifacts without requiring per-project package configuration.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100