Skip to content

feat: lake: disabling the artifact cache also disables fetching#12300

Draft
tydeu wants to merge 4 commits intoleanprover:masterfrom
tydeu:lake/ternary-enableArtifactCache
Draft

feat: lake: disabling the artifact cache also disables fetching#12300
tydeu wants to merge 4 commits intoleanprover:masterfrom
tydeu:lake/ternary-enableArtifactCache

Conversation

@tydeu
Copy link
Member

@tydeu tydeu commented Feb 4, 2026

This PR makes disabling the artifact cache (e.g., via LAKE_ARTIFACT_CACHE=false or enableArtifactCache = false) now stop Lake from fetching from the cache (whereas it previously only stopped writing to it).

There are now 3 possible configuration of the local artifact cache for a package:

  • true: Artifacts will be fetched from the cache before building (if available) and built artifacts will be cached.
  • false:: Lake will neither fetch artifacts from the cache or store them into it.
  • default (no configuration set): Lake will fetch artifacts from the cache but not store them into it. A key motivation for this is to, by default, reuse artifacts downloaded into the cache from a remote service.

@tydeu tydeu added the changelog-lake Lake label Feb 4, 2026
@tydeu tydeu force-pushed the lake/ternary-enableArtifactCache branch from 3932854 to fb13199 Compare February 4, 2026 01:44
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Feb 4, 2026
@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-02-04 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-02-05 21:17:44)

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Feb 5, 2026
@github-actions github-actions bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Feb 5, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-lake Lake mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants