Skip to content

rust-cache: cache-registry follows the crates mirror - #81

Merged
gronke merged 2 commits into
mainfrom
cache-registry-auto
Sep 17, 2026
Merged

gronke merged 2 commits into
mainfrom
cache-registry-auto

Conversation

@gronke

@gronke gronke commented Sep 17, 2026

Copy link
Copy Markdown
Owner

A self-hosted runner that hands RUST_CI_CRATES_MIRROR to the job (docs/self-hosted.md) serves the crates.io index and the tarballs through crates-mirror, so the registry archive of rust-cache only transfers bytes the mirror already holds.

A host that mirrors crates.io serves the index and the tarballs at LAN speed, so the registry archive only transfers bytes the mirror already holds.
The new input takes "true", "false" or "auto"; auto skips the entry, restore and save alike, when RUST_CI_CRATES_MIRROR is set in the job environment, the same rule every auto follows.
The registry-cached output and a cache.registry note say what happened; the selftest asserts both sides.
@gronke gronke changed the title rust-cache: cache-registry follows the crates mirror- #87 rust-cache: cache-registry follows the crates mirror Sep 17, 2026
@gronke
gronke merged commit fa0e75b into main Sep 17, 2026
29 checks passed
@gronke
gronke deleted the cache-registry-auto branch September 17, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant