cache-buildkite-plugin icon indicating copy to clipboard operation
cache-buildkite-plugin copied to clipboard

Ability to run a command or script prior to cache save

Open djmarcin opened this issue 2 years ago • 4 comments

Sometimes it's useful to prepare a directory for caching by removing some bits that should not be cached. This could be done directly in the command but it seems better to group with the caching configuration.

Specific motivating example is the target directory for Rust, which contains both third party dependencies which are of highest value to cache, and incremental compilation of local crates which are large and low value (or sometimes broken) to cache. Inspiration from the https://github.com/Swatinem/rust-cache GitHub Actions plugin.

djmarcin avatar Jun 03 '22 04:06 djmarcin

I think this can be co-implemented with #47

gencer avatar Jun 03 '22 08:06 gencer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 28 '22 00:06 stale[bot]

Not stale

gencer avatar Jul 05 '22 05:07 gencer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 01 '22 00:08 stale[bot]