leanprover-community / leanprover-community/mathlib4
allow `Cache` use alternative mirror URL via environment variables
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 4.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
In the current Cache implementation
/-- Azure blob URL -/
def URL : String :=
"https://lakecache.blob.core.windows.net/mathlib4"
Seems that the get cache requests will always fetch from Azure. I am trying to solve:
- get the cache blob from some where like mirrors or local server when needed?
- do cache for any results we want to a custom server? (such as in a local network with some co-workers)
The simplest implementation would just be check whether some environment variables exists. If this is acceptable, I can write a RFC for this and file a implementation merge request.
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
Read Cache/Requests.lean, beginning at URL, and trace the cache request paths to identify where a configurable source and destination would be handled. Resolve the RFC's environment-variable behavior for mirrors and custom servers, then verify that retrieval and publishing use the selected endpoint.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100