leanprover-community / leanprover-community/mathlib4

allow `Cache` use alternative mirror URL via environment variables

Open
#6,814 1 comment 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.