Skip to content

fix(caching): /target directory cleanup on Cargo.lock changes#23

Merged
geekbrother merged 1 commit intomainfrom
fix/cached_target_cleanup
Jan 23, 2026
Merged

fix(caching): /target directory cleanup on Cargo.lock changes#23
geekbrother merged 1 commit intomainfrom
fix/cached_target_cleanup

Conversation

@geekbrother
Copy link
Contributor

Description

This PR adds a conditional /target directory cleanup when the Cargo.lock hash was changed and no cargo cache was found. This will prevent bloating the cache size on every Cargo.lock change, but still will reuse other than /target directories from the cache to save a bit on the building time.

We are using the cache-hit output parameter to check if the exact cache was not found (Cargo.lock was changed).

@geekbrother geekbrother self-assigned this Jan 23, 2026
@geekbrother geekbrother merged commit 10fbfce into main Jan 23, 2026
2 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.

2 participants