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

oras should be able to tag the same digest with different tags #529

Closed
milosgajdos opened this issue Aug 9, 2022 · 5 comments
Closed

oras should be able to tag the same digest with different tags #529

milosgajdos opened this issue Aug 9, 2022 · 5 comments
Milestone

Comments

@milosgajdos
Copy link

milosgajdos commented Aug 9, 2022

We've been experimenting with oras for a bit while and came across a rather unexpected behaviour. Specifically, oras cli does not seem to be able to tag the same [manifest] digest with different tags.

Example scenario: I want to push some content to a registry and tag it with a tag. Then I want to tag the same content with a different tag. The latter does not happen. My suspicion is on the RE-tag, oras does HEAD request on manifest digest but not on the tag -- it finds the digest exists and never follows up with the new tag.

Is there any specific reason for this behaviour? I can't think of any.

How to reproduce this:

Push some content to a registry:

$ oras milosgajdos/foo:1.2.3 foo.txt:application/vnd.unknown.layer.v1+txt
Uploading 63c2b3576834 foo.txt
Pushed milosgajdos/foo:1.2.3
Digest: sha256:6f2ee3eaa3f6fc53ce908fa95fe3e0efa49687b37872e27ad88bba8fd74fe3c1

Push a new tag for the same content:

$ oras milosgajdos/foo:4.5.6 foo.txt:application/vnd.unknown.layer.v1+txt
Exists    6f2ee3eaa3f6
Pushed milosgajdos/foo:4.5.6
Digest: sha256:6f2ee3eaa3f6fc53ce908fa95fe3e0efa49687b37872e27ad88bba8fd74fe3c1

The worst thing is, the oras on re-TAG (i.e. push with different tag) prints output that seems to suggest that the new tag has been pushed:

Pushed milosgajdos/foo:4.5.6

But that doesn't seem to be the case.

@Wwwsylvia
Copy link
Member

This issue should be opened on the ORAS CLI repo. /cc @qweeah
@milosgajdos Which oras CLI version are you using?

@qweeah
Copy link
Contributor

qweeah commented Aug 11, 2022

@milosgajdos
This is a known issue (#447 and oras-project/oras-go#239) for 0.13.0. It has been fixed in the main branch but we haven't released a new version(0.14.0) yet.

@milosgajdos
Copy link
Author

Thanks for the heads up @qweeah . Can we keep this open until we verify 0.14.0 fixes the problem when it's released.

@yizha1 yizha1 transferred this issue from oras-project/oras-go Aug 31, 2022
@yizha1 yizha1 added this to the v0.14.0 milestone Aug 31, 2022
@yizha1
Copy link

yizha1 commented Aug 31, 2022

@milosgajdos Could you verify whether this issue is fixed in ORAS CLI 0.14.0? Thanks.

@milosgajdos
Copy link
Author

This seems to be fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants