Skip to content

OCI layout repo tags returns tags from other repositories #2352

Closed

Description

@TanvirTian

What happened in your environment?

When using oras repo tags with an OCI layout, it can show tags from other repositories.

Also, using a repository digest can return not found even when the digest exists.

What did you expect to happen?

It should only show tags from the given repository. It should also find the digest when it exists in the OCI layout.

How can we reproduce it?

  1. Create an OCI layout and push an image:
oras push --oci-layout-path layout example.com/repo:v1 hello.txt
  1. Add another tag to the same image:
oras tag --oci-layout-path layout example.com/repo:v1 other.com/other:v9
  1. List tags using the first repository's tag:
oras repo tags --oci-layout-path layout example.com/repo:v1

It incorrectly shows tags from both repositories.

  1. Get the image digest and try:
oras repo tags --oci-layout-path layout example.com/repo@sha256:<digest>

It returns not found even though the digest exists.

What is the version of your ORAS CLI?

1.4.0

What is your OS environment?

CachyOS Linux (x86_64)

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    triage
    on Nov 22, 2026
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

    bugtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions