Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cache-write-only to overwrite existing cache entries #34

Open
bigdaz opened this issue Jul 18, 2022 · 1 comment
Open

Allow cache-write-only to overwrite existing cache entries #34

bigdaz opened this issue Jul 18, 2022 · 1 comment
Labels
enhancement New feature or request in:caching Issue with caching of Gradle User Home

Comments

@bigdaz
Copy link
Member

bigdaz commented Jul 18, 2022

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.
@bigdaz bigdaz added the enhancement New feature or request label Jul 18, 2022
@bigdaz
Copy link
Member Author

bigdaz commented Jul 18, 2022

This would address #20

@bigdaz bigdaz transferred this issue from gradle/gradle-build-action Feb 9, 2024
@bigdaz bigdaz added the in:caching Issue with caching of Gradle User Home label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in:caching Issue with caching of Gradle User Home
Projects
None yet
Development

No branches or pull requests

1 participant