Skip to content
New issue

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

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

Already on GitHub? # to your account

There is no oras pull --artifact-type #442

Open
1 task done
ChristianCiach opened this issue Dec 18, 2024 · 0 comments
Open
1 task done

There is no oras pull --artifact-type #442

ChristianCiach opened this issue Dec 18, 2024 · 0 comments

Comments

@ChristianCiach
Copy link
Contributor

Code of Conduct

What part of document/web-page on oras.land is affected?

https://oras.land/docs/how_to_guides/format_output/ describes how to pull multiple artifacts using oras pull $REGISTRY/$REPO:$TAG --artifact-type ..., but there is no such option.

My ORAS version:

$ oras version
Version:    1.2.1+Homebrew
Go version: go1.23.4

I don't know if a previous version of ORAS had such an option, but looking at the releases-page, it doesn't seem this way.

It seems that pulling an artifact is actually a two-step process:

  1. Use oras discover to find the digest of the artifact: oras discover $REGISTRY/$REPO:$TAG --artifact-type example/sbom
  2. Use the digest of the artifact to pull it: oras pull $REGISTRY/$REPO@$ARTIFACT_DIGEST

It doesn't seem possible to pull multiple artifacts at once and use custom file names. So this section of the documentation should probably be fixed or removed altogether.

Additional comments?

No response

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant