Skip to content

oras tag should not create referrers tags #1436

Closed

Description

@qweeah

Although tagging a referrer artifact manifest is discouraged, it is still doable. However, re-tagging is implemented as pushing the exact manifest again to the remote server. According to the distribution-spec, if the remote server does not support referrers API, it will go for the referrers tag schema case. However, it is not necessary since the manifest is already there, we are just adding a new tag not really pushing a new manifest.

In summary, tagging a referrers manifest should never go for the tag schema even if the server does not support referrers API since the referrer manifest is already there on the server.

Originally posted by @shizhMSFT in #1435 (comment)

Activity

  1. added
    bug
    on Jun 28, 2024
  2. qweeah commented on Jul 1, 2024

    @qweeah
    ContributorAuthor

    BTW this bug generates unwanted referrer tags (256-xxx) ONLY in registries that haven't implemented OCI Distribution Spec v1.1.0.

  3. qweeah commented on Jul 10, 2024

    @qweeah
    ContributorAuthor

    @njucjc Can you help confirm if this has met your expectation described in #1435? You may build from main branch or use ghcr.io/oras-project/oras:main. Thanks in adavnce.

  4. njucjc commented on Jul 11, 2024

    @njucjc
    Contributor

    @njucjc Can you help confirm if this has met your expectation described in #1435? You may build from main branch or use ghcr.io/oras-project/oras:main. Thanks in adavnce.

    @qweeah I already try it out, It works

  5. qweeah commented on Jul 11, 2024

    @qweeah
    ContributorAuthor

    Closing as it's resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions