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

Migrate to distribution/reference #224

Merged

Conversation

sel
Copy link
Contributor

@sel sel commented Nov 1, 2023

What type of PR is this?

/kind bug
/area cli

What this PR does / why we need it:

Use the tried and tested package github.com/docker/distribution/reference for parsing OCI references.

Which issue(s) this PR is related to:

Fixes #209

Special notes for your reviewer:

  • This patch uses the already-vendored package github.com/docker/distribution/reference. When the dependencies are upgraded we should switch to the CNCF-contributed package, which was factored out of the docker one and keeps the same API: github.com/distribution/reference

  • I chose to keep the existing Reference API in ormb's oci package as a facade instead of updating all call-sites to use github.com/docker/distribution/reference. If you prefer I am open to doing the latter also.

  • The distribution/reference package has extensive tests so I only added a few here to regression-test the specific bug fixed by this change.

/cc @gaocegege

Does this PR introduce a user-facing change?:

NONE

Use github.com/docker/distribution/reference for parsing references.

Fixes kleveross#209

Signed-off-by: Steve Larkin <[email protected]>
Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

LGTM 👍
/lgtm

@markhulia
Copy link

markhulia commented Dec 20, 2023

@gaocegege could you please merge this PR?

@gaocegege gaocegege merged commit 05e74c7 into kleveross:master Dec 20, 2023
1 check failed
@gaocegege
Copy link
Member

CI blocks the automatic merge. I am merging it manually.

@sel sel deleted the feature/migrate-to-distribution-reference branch April 3, 2024 11:41
@sel
Copy link
Contributor Author

sel commented Apr 3, 2024

@gaocegege could you please make a new release in GitHub? The ormb binary in the Python SDK is outdated.

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.

[Bug] Save/Tag interpret numeric tags as port numbers
3 participants