Skip to content

Conversation

@markusthoemmes
Copy link
Contributor

Currently, when an external process deletes a file that a symlink is pointing to in the cache, but not the symlink itself, we will never fix that and the cache will be permanently broken.

This makes the AdvertiseCachedFile sensitive to the possibility of links being broken. Broken links are removed and the advertisement process is retried to establish a functioning cache state again.

jdolitsky
jdolitsky previously approved these changes Dec 19, 2025
@markusthoemmes markusthoemmes marked this pull request as draft December 19, 2025 20:41
@markusthoemmes markusthoemmes marked this pull request as ready for review January 5, 2026 08:06
Currently, when an external process deletes a file that a symlink is pointing to in the cache, but not the symlink itself, we will never fix that and the cache will be permanently broken.

This makes the `AdvertiseCachedFile` sensitive to the possibility of links being broken. Broken links are removed and the advertisement process is retried to establish a functioning cache state again.
@markusthoemmes markusthoemmes merged commit 8c6efdf into chainguard-dev:main Jan 5, 2026
20 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.

3 participants