oras pull
fails when --config
is used and there is more than one config in the reference tree
#682
Closed
1 task done
Labels
bug
Something isn't working
Milestone
What happened in your environment?
Suppose I have uses an registry that doesn't support OCI artifact, and I have a OCI Image
A
stored in the registry.If I use
oras attach
to created a OCI imageB
as OCI artifact fallback in the registry, pullingB
withoras pull --config config.json $REF_B
will fail withError: config.json: duplicate name
.What did you expect to happen?
oras pull --config config.json $REF_B
should only pull only the config of root node, in this case config of image B.How can we reproduce it?
DIGEST
from the resultoras pull localhost:5000/test@${DIGEST} --config config.json
This step will fail with
Error: config.json: duplicate name
.What is the version of your ORAS CLI?
Version: 0.16.0
Go version: go1.19.2
Git commit: d606fed
Git tree state: clean
What is your OS environment?
Ubuntu 20.04
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: