Bad UX of --oci-layout-path
flag working with oras repo tags
#1612
Labels
ux
User experience related
--oci-layout-path
flag working with oras repo tags
#1612
What happened in your environment?
I have an OCI layout that contains several tags, some are in format of FQDN. I can list the tags by running
oras repo tags --oci-layout $dirName
, for example:However, if I replace
--oci-layout
with--oci-layout-path
like this, there will be an error:The right way is to add one more parameter as the repository name, which should be an empty string in this case:
oras repo tags --oci-layout-path ./repo "" example.registry.com/foo:latest test.com/bar:v1 v2
This UX is strange and not intuitive.
What did you expect to happen?
The
--oci-layout=path
flag may not be applicable to theoras repo tags
command.How can we reproduce it?
oras repo tags --oci-layout $dirName
oras repo tags --oci-layout-path $dirName ""
What is the version of your ORAS CLI?
Version: 1.3.0-beta.1
Go version: go1.23.4
OS/Arch: linux/amd64
Git commit: 2ca02f6
Git tree state: clean
What is your OS environment?
Ubuntu 24.04 in WSL
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: