Skip to content

fix(config): report cache cleanup deletion failures#14358

Open
solanaXpeter wants to merge 1 commit intofoundry-rs:masterfrom
solanaXpeter:fix/config-cache-cleanup-errors
Open

fix(config): report cache cleanup deletion failures#14358
solanaXpeter wants to merge 1 commit intofoundry-rs:masterfrom
solanaXpeter:fix/config-cache-cleanup-errors

Conversation

@solanaXpeter
Copy link
Copy Markdown

Motivation

Cache cleanup paths currently ignore all deletion errors.
That keeps missing paths best-effort, but it also hides permission and path-type failures while leaving stale cache state behind.

Solution

Ignore only io::ErrorKind::NotFound for cache cleanup removals and return all other deletion errors with path context from cleanup and the clean_foundry_* helpers.
Add focused unit tests for missing-path and wrong-path-type cases.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant