Skip to content

Inconsistent output in "oras manifest index create" #1576

@FeynmanZhou

Description

@FeynmanZhou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions