Open FeynmanZhou opened 11 months ago
oras push localhost:5000/oras:v11,v12,v13 hello.txt
= oras push localhost:5000/oras:v11 hello.txt
+ orag tag localhost:5000/oras:v11
, the Tagged xxx
output is just to be consistent with oras tag
logs.
BTW I just found such output is also applied in oras cp
and oras manifest push
# copy
$ oras cp localhost:5000/command/artifacts:foobar localhost:5000/to:v1,v2,v3,v4
✓ Copied application/vnd.oci.image.manifest.v1+json 851/851 B 100.00% 24ms
└─ sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb
Copied [registry] localhost:5000/command/artifacts:foobar => [registry] localhost:5000/to:v1
Tagged v2
Tagged v4
Tagged v3
Digest: sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb
# push manifest
oras manifest fetch localhost:5000/to:v1 -o manifest.json
oras manifest push localhost:5000/to:v1,v2,v3 manifest.json
Pushed [registry] localhost:5000/to:v1
Tagged v2
Tagged v3
Digest: sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb
@FeynmanZhou is this really needed? As @qweeah has mentioned, the current output is by design. It is not appropriate to print something like
Tagged v11 and pushed the file to [registry] localhost:5000/oras:v11
Tagged v12 and pushed the file to [registry] localhost:5000/oras:v12
Tagged v13 and pushed the file to [registry] localhost:5000/oras:v13
, because of the following reasons:
v11
What happened in your environment?
I pushed a file
hello.txt
with 3 tagsv11
,v12
,v13
as follows:From the logs, it tells me the file has been pushed to only, but v12 and v13 are tagged.
Next, when I view the manifest of
localhost:5000/oras:v12
, the filehello.txt
has also been pushed to this repo.It looks a bit confusing because the file has also been pushed to v12 and v13, but the logs don't tell me this result explicitly.
What did you expect to happen?
or
How can we reproduce it?
Described in the first question
What is the version of your ORAS CLI?
v1.1.0
What is your OS environment?
Ubuntu
Are you willing to submit PRs to fix it?