oras icon indicating copy to clipboard operation
oras copied to clipboard

push with multiple tags failed with TTY

Open qweeah opened this issue 2 years ago • 1 comments

What happened in your environment?

Got below error when pushing and tagging a manifest with oras push from a terminal

$ oras push localhost:7000/test:v1,v2
Uploading empty artifact
✓ Exists    application/vnd.oci.empty.v1+json                                                                         2/2  B 100.00%     0s 
  └─ sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
✓ Uploaded  application/vnd.oci.image.manifest.v1+json                                                            535/535  B 100.00%     0s
  └─ sha256:ccf0a406902c9820f6db75612fd2a9ed5ec928f971256d2e8091c1e7bb35ba0f
Pushed [registry] localhost:7000/test:v1
Error: failed to push content: progress output manager has already been stopped

What did you expect to happen?

Tagging should be successful.

How can we reproduce it?

Use oras push to push with multiple tags

What is the version of your ORAS CLI?

https://github.com/oras-project/oras/commit/a377128efdcbd58d832c4164e448f92bc63cf310

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?

  • [X] Yes, I am willing to fix it.

qweeah avatar Dec 22 '23 00:12 qweeah

I will verify whether this issue is resolved or not.

FeynmanZhou avatar Jan 16 '24 06:01 FeynmanZhou

Verified this issue has been fixed in ORAS v1.2.0-beta.1. Now we could close it. Thanks @qweeah

oras push localhost:5000/oras-demo:70,71
✓ Exists    application/vnd.oci.empty.v1+json                                                      2/2  B 100.00%     0s
  └─ sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
✓ Uploaded  application/vnd.oci.image.manifest.v1+json                                         535/535  B 100.00%     0s
  └─ sha256:5cc80103e9f4f8c25d789ee27a4eba5e9b5505a660fe1949ea8e96bc66f98ae9
Pushed [registry] localhost:5000/oras-demo:70
Tagged 71
Digest: sha256:5cc80103e9f4f8c25d789ee27a4eba5e9b5505a660fe1949ea8e96bc66f98ae9

FeynmanZhou avatar Mar 12 '24 08:03 FeynmanZhou