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

pkg/registry: Export errNotFound #1940

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

pkg/registry: Export errNotFound #1940

wants to merge 1 commit into from

Conversation

Eun
Copy link

@Eun Eun commented May 7, 2024

The registry logic checks for the unexported error errNotFound during blob handling.
When implementing a custom BlobHandler outside of this package the developer is unable to use the unexported errNotFound variable, therefore the custom BlobHandler cannot signal the correct error to the registry package which results in a wrong execution flow.

This PR exposes the ErrNotFound error so it can be used from outside the registry package, this aligns with other packages in this module that use the same approach e.g. cache

Copy link

github-actions bot commented Aug 6, 2024

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@Eun
Copy link
Author

Eun commented Aug 6, 2024

Can anybody take a look at this?

@tylerwilliams
Copy link

Just ran into this issue myself. It would be great if we could get this CL merged :)

@tylerwilliams
Copy link

@jonjohnsonjr would you mind giving this a look?

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.

2 participants