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

Inconsistent output in "oras manifest index create" #1576

Open
1 task
FeynmanZhou opened this issue Dec 9, 2024 · 0 comments · May be fixed by #1579
Open
1 task

Inconsistent output in "oras manifest index create" #1576

FeynmanZhou opened this issue Dec 9, 2024 · 0 comments · May be fixed by #1579
Labels
bug Something isn't working
Milestone

Comments

@FeynmanZhou
Copy link
Member

What happened in your environment?

The digest of each fetched manifest is missing in the output of oras manifest index create. This is inconsistent with oras manifest index update:

  • See the output of oras manifest index create:
$ oras manifest index create --oci-layout layout-dir:v1 v1-linux-amd64 v1-linux-arm64

Fetching  v1-linux-amd64
Fetched   v1-linux-amd64
Fetching  v1-linux-arm64
Fetched   v1-linux-arm64
Packed    edb5bc1f0b5c application/vnd.oci.image.index.v1+json
Pushed    [oci-layout] layout-dir:v1
Digest: sha256:edb5bc1f0b5c21e9321b34e50c92beae739250fb88409056e8719d9759f6b5b4
  • See the output of oras manifest index update
$ oras manifest index update --oci-layout layout-dir:v1 --add v1-linux-armv7

Fetching  v1
Fetched   sha256:edb5bc1f0b5c21e9321b34e50c92beae739250fb88409056e8719d9759f6b5b4 v1
Fetching  v1-linux-armv7
Fetched   sha256:965945e1a08031a63d5970c1da7c39af231c36e4c0a5a3cc276d02a3e06513ee v1-linux-armv7
Added     sha256:965945e1a08031a63d5970c1da7c39af231c36e4c0a5a3cc276d02a3e06513ee v1-linux-armv7
Updated   sha256:6a165dbdc7a24e677e7ec0748457604ba143ae74e5b27a19789b88b41bf49bb0
Pushed    [oci-layout] layout-dir:v1
Digest: sha256:6a165dbdc7a24e677e7ec0748457604ba143ae74e5b27a19789b88b41bf49bb0

What did you expect to happen?

$ oras manifest index create --oci-layout layout-dir:v1 v1-linux-amd64 v1-linux-arm64

Fetching  v1-linux-amd64 
Fetched   sha256:42c524c48e0672568dbd2842d3a0cb34a415347145ee9fe1c8abaf65e7455b46 v1-linux-amd64 
Fetching  v1-linux-arm64
Fetched   sha256:965945e1a08031a63d5970c1da7c39af231c36e4c0a5a3cc276d02a3e06513ee v1-linux-arm64 
Packed    edb5bc1f0b5c application/vnd.oci.image.index.v1+json
Pushed    [oci-layout] layout-dir:v1
Digest: sha256:edb5bc1f0b5c21e9321b34e50c92beae739250fb88409056e8719d9759f6b5b4

How can we reproduce it?

Run the commands as listed above

What is the version of your ORAS CLI?

v1.2.0+unreleased

What is your OS environment?

Ubuntu 22.06

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.
@FeynmanZhou FeynmanZhou added bug Something isn't working triage New issues or PRs to be acknowledged by maintainers and removed triage New issues or PRs to be acknowledged by maintainers labels Dec 9, 2024
@FeynmanZhou FeynmanZhou added this to the v1.3.0-beta.1 milestone Dec 9, 2024
@qweeah qweeah modified the milestones: v1.3.0-beta.1, v1.3.0-beta.2 Dec 9, 2024
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.

2 participants