Skip to content

Support cache-root overrides and target snapshots - #52

Merged
zackees merged 2 commits into
mainfrom
fix/cache-dir-override-warm-action
Apr 22, 2026
Merged

zackees merged 2 commits into
mainfrom
fix/cache-dir-override-warm-action

Conversation

@zackees

@zackees zackees commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add supported ZCCACHE_CACHE_DIR handling for the cache root and all derived paths.
  • Derive default zccache and download-daemon endpoints from the override so separate cache roots get separate daemon instances.
  • Document the override and clarify that the action caches a target snapshot, with zccache warm as a backfill.
  • Add focused tests for overridden cache paths, Windows daemon lock paths, and endpoint isolation.

Validation

  • cargo fmt
  • cargo test -p zccache-core -p zccache-ipc -p zccache-download-protocol
  • cargo test -p zccache-cli warm
  • cargo check -p zccache-cli -p zccache-daemon
  • git diff --check

Note: a direct cargo build -p zccache-cli -p zccache-daemon smoke build is currently blocked in this local Windows/MinGW environment by an existing zccache_cli.dll cdylib linker failure; cargo check and the targeted tests pass.

Fixes #51
Fixes #18

@codecov

codecov Bot commented Apr 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.02649% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/zccache-ipc/src/lib.rs 91.89% 3 Missing ⚠️
...rates/zccache-download-protocol/src/daemon_mgmt.rs 94.28% 2 Missing ⚠️
crates/zccache-core/src/config.rs 98.46% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@zackees
zackees merged commit bd142a4 into main Apr 22, 2026
18 checks passed
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.

Add supported ZCCACHE_CACHE_DIR cache-root override feat: zccache warm — pre-populate target/ from cache for near-zero builds

1 participant