gradle / gradle/actions

Allow cache-write-only to overwrite existing cache entries

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
enhancement in:caching
Dominant language
TypeScript
Stars
340
Forks
117
Avg merge
1d 9h
Merged PRs (30d)
11

Description

There is now an API that permits users to delete specific cache entries. It might be possible to leverage this to overwrite existing cache entries, allowing corrupted cache entries to be removed.

Two things we could do without user input:
- When running with `cache-write-only`, we could automatically delete any existing cache entries. This would have the effect of overwriting existing cache entries with the same key.
- If a cache entry is obviously corrupted (ie cannot be restored) we could delete it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.