Skip to content

Conversation

@cberescu
Copy link
Contributor

@cberescu cberescu commented Nov 20, 2024

This will fix some issues with docker hub fallback support. Also adds a default for namespaces .

Should fix #70

src/router.ts Outdated
}

const { name, reference } = req.params;
const { reference } = req.params;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can these library prefix logic be in the fallback client when a docker.io registry is being in use?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

niot sure where you mean the logic should be put..

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 const name = req.params.name.includes("/") ? req.params.name : `library/${req.params.name}`;

This could probably get moved to http.ts? Seems very specific to how docker.io does things.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@gabivlj
Copy link
Collaborator

gabivlj commented Nov 20, 2024

Thank you so much @cberescu, I appreciate this contribution a lot ❤️.

@cberescu
Copy link
Contributor Author

fixed some failed tests.

@gabivlj gabivlj merged commit a44b647 into cloudflare:main Nov 20, 2024
3 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.

Pull fallback not working?

3 participants