Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oras manifest push removes a manifest from index.json file in OCI layout #883

Closed
1 task
qweeah opened this issue Mar 15, 2023 · 0 comments · Fixed by #894
Closed
1 task

oras manifest push removes a manifest from index.json file in OCI layout #883

qweeah opened this issue Mar 15, 2023 · 0 comments · Fixed by #894
Labels
bug Something isn't working
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Mar 15, 2023

What happened in your environment?

I pushed a manifest file via oras manifest push without tagging and the manifest disappears from the layout index.json file.

What did you expect to happen?

The manifest should still be in the index.json file in the OCI layout.

How can we reproduce it?

Reproduce script:

$ cat manifest.json
{"schemaVersion":2,"mediaType":"application/vnd.oci.image.manifest.v1+json","config":{"mediaType":"application/vnd.oci.image.config.v1+json","digest":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","size":2},"layers":[]}

$ oras manifest push . --oci-layout ./manifest.json
Pushed [oci-layout] .
Digest: sha256:962b1ae83825c37b6eb3ee98dbe587461074a338cc0b838a635d274e2844096d

$ cat index.json| jq
{
  "schemaVersion": 2,
  "manifests": []
}

$ # But the manifest is actually in the layout
$ oras manifest fetch .@sha256:962b1ae83825c37b6eb3ee98dbe587461074a338cc0b838a635d274e2844096d --oci-layout
{"schemaVersion":2,"mediaType":"application/vnd.oci.image.manifest.v1+json","config":{"mediaType":"application/vnd.oci.image.config.v1+json","digest":"sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a","size":2},"layers":[]}

What is the version of your ORAS CLI?

$ oras version
Version:        1.0.0-rc.2+unreleased
Go version:     go1.20
Git commit:     38409cc
Git tree state: dirty

What is your OS environment?

Ubuntu 20.04

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.
@qweeah qweeah added the bug Something isn't working label Mar 15, 2023
@qweeah qweeah added this to the v1.0.0 milestone Mar 15, 2023
@qweeah qweeah changed the title oras manifest push might removes a manifest from index.json file in OCI layout oras manifest push removes a manifest from index.json file in OCI layout Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant