Skip to content

oras tag accepts a single argument instead of requiring at least two #2264

Description

@TanvirTian

What happened in your environment?

The oras tag command accepts a single positional argument, even though tagging requires a source artifact reference and at least one destination tag.

What did you expect to happen?

The command should reject invocations with fewer than two arguments and display a clear argument-count error explaining that both the source reference and at least one destination tag are required.

How can we reproduce it?

Build ORAS CLI from the affected source.

  • 1 Run:
oras tag localhost:5000/hello:v1
  • 2 Observe that the command returns dstReferences cannot be empty: missing reference instead of an argument-count error.

No running registry is required to reproduce this behavior.

What is the version of your ORAS CLI?

1.3.5

What is your OS environment?

CachyOs(x86_64)

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    triage
    on Oct 20, 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