You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
oras tag accepts a single argument instead of requiring at least two #2264
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.
Activity