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

Add ResolutionEventListener event whenever a repository normalization attempt is skipped #5023

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

pstreef
Copy link
Contributor

@pstreef pstreef commented Feb 12, 2025

When a normalization attempt fails, the repository gets cached as null and any subsequent normalization attempts are skipped. When this cache is persisted we lose any such information in subsequent runs. Adding this event can give a hint as to why repositories are not attempted for downloading.

What's changed?

New event added and used

What's your motivation?

Not knowing why a repository is not attempted to be used for downloading

Have you considered any alternatives or workarounds?

It would be even nicer of downloadError could list all the repositories NOT attempted (with reasons), but that would be a much bigger change.

…on attempt is skipped

When a normalization attempt fails, the repository gets cached as `null` and any subsequent normalization attempts are skipped. When this cache is persisted we lose any such information in subsequent runs. Adding this event can give a hint as to why repositories are not attempted for downloading.
@timtebeek timtebeek added the enhancement New feature or request label Feb 12, 2025
@pstreef pstreef merged commit ab8e8d5 into main Feb 12, 2025
1 of 2 checks passed
@pstreef pstreef deleted the feat/add-event-on-download-attempt-skipped branch February 12, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants