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

Improper verbose output of oras discover -o tree #1003

Closed
1 task done
shizhMSFT opened this issue Jul 5, 2023 · 0 comments · Fixed by #1005
Closed
1 task done

Improper verbose output of oras discover -o tree #1003

shizhMSFT opened this issue Jul 5, 2023 · 0 comments · Fixed by #1005
Labels
bug Something isn't working

Comments

@shizhMSFT
Copy link
Contributor

What happened in your environment?

The annotation value one/more/thing is not interpreted correctly.

What did you expect to happen?

one/more/thing should be in one line.

How can we reproduce it?

$ echo hello > hello.txt
$ oras push --oci-layout test:latest hello.txt
Uploading 5891b5b522d5 hello.txt
Uploaded  5891b5b522d5 hello.txt
Pushed [oci-layout] test:latest
Digest: sha256:1ec25e721c68891d389441ae02c0c3a35e59aff394e996dba73f8d2a616f78a3
$ oras attach --oci-layout test:latest --annotation foo=bar --artifact-type test
Uploading empty artifact
Attached to [oci-layout] test@sha256:1ec25e721c68891d389441ae02c0c3a35e59aff394e996dba73f8d2a616f78a3
Digest: sha256:29172865ad23502edeb8745c14624633adeb43c3da5872d56fb0d7c0e4b17e92
$ oras attach --oci-layout test:latest --annotation next=one/more/thing --artifact-type test
Uploading empty artifact
Attached to [oci-layout] test@sha256:1ec25e721c68891d389441ae02c0c3a35e59aff394e996dba73f8d2a616f78a3
Digest: sha256:1fe801f971f6ff238f45e7f7b03aeeb1e36b99146ff3c5eada155f0a1cee1c4b
$ oras discover --oci-layout test:latest -o tree -v
test@sha256:1ec25e721c68891d389441ae02c0c3a35e59aff394e996dba73f8d2a616f78a3
└── test
    ├── sha256:1fe801f971f6ff238f45e7f7b03aeeb1e36b99146ff3c5eada155f0a1cee1c4b
    │   ├── next: one
    │   │   └── more
    │   │       └── thing
    │   └── org.opencontainers.image.created: "2023-07-05T09:26:14Z"
    └── sha256:29172865ad23502edeb8745c14624633adeb43c3da5872d56fb0d7c0e4b17e92
        ├── foo: bar
        └── org.opencontainers.image.created: "2023-07-05T09:25:54Z"

What is the version of your ORAS CLI?

$ oras version
Version:        1.0.0
Go version:     go1.20.2
Git commit:     b58e7b910ca556973d111e9bd734a71baef03db2
Git tree state: clean

What is your OS environment?

Ubuntu 20.04.6 LTS

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.
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