nienbo / cache-buildkite-plugin

Tarball, Rsync & S3 Cache Kit for Buildkite. Supports Linux, macOS and Windows
https://buildkite.com/plugins
MIT License
67 stars 39 forks source link

cache plugin fails when previously saved file is corrupted #72

Closed eshedg closed 5 months ago

eshedg commented 5 months ago

problem

in some cases, the local file from a previous 'save-cache' step may be corrupted (with EOFs etc).

desired behavior

the plugin should be able to ignore the local file and revert to default behavior (i.e. download the file and extract it).
the default behavior will also take care of overwriting the corrupted local file for the next time.