Skip to content

Keep the Rust build cache across tool bumps - #48

Merged
ludfjig merged 1 commit into
mainfrom
split-tool-cache
Nov 10, 2026
Merged

ludfjig merged 1 commit into
mainfrom
split-tool-cache

Conversation

@ludfjig

@ludfjig ludfjig commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

The build cache key included a hash of tool-versions.sh, and rust-cache only falls back across Cargo.lock changes. Bumping any tool discarded the whole cache, so #46 rebuilt every tool and crate from scratch.

  • Tool binaries use a separate cache keyed by tool-versions.sh, with a fallback to older tool sets. setup-tools.sh reinstalls only tools whose versions differ.
  • The build cache key keeps only the cargo-hyperlight version, since that tool builds the dummy guest into a cached target directory.

Every cache misses once after merge because the keys change.

The build cache key included a hash of tool-versions.sh, and rust-cache only falls back across Cargo.lock changes. Bumping any tool discarded the whole cache, so the PR that bumped hyperlight-wasm-aot rebuilt every tool and crate from scratch.

Tool binaries now use a separate cache keyed by tool-versions.sh, with a fallback to older tool sets. setup-tools.sh reinstalls only tools whose versions differ. The build cache key keeps only the cargo-hyperlight version, since that tool builds the dummy guest into a cached target directory.

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig
ludfjig merged commit 467360f into main Nov 10, 2026
27 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant