Skip to content

Add subject to OciImageManifest #181

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

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

fibonacci1729
Copy link
Contributor

This allows creating accessory artifacts that can be associated with artifacts in a repository. Additionally added a missing error code.

@bacongobbler
Copy link
Contributor

bacongobbler commented Oct 24, 2024

Out of curiosity, where did you find the NOT_FOUND error code? I cannot find it listed under https://github.com/opencontainers/distribution-spec/blob/main/spec.md#error-codes

There is a mention of legacy docker support error codes which states "these error codes are OPTIONAL and clients SHOULD NOT depend on them". I did notice both TagInvalid and ManifestUnverified is listed under OciErrorCode and marked as deprecated. Perhaps this is another legacy error code?

@fibonacci1729
Copy link
Contributor Author

I was seeing a serde json deserialization error saying "not found" was an unexpected error code variant when querying for a manifest that didn't exist. Adding this variant fixed it and allowed me to check the code to determine existence of an artifact.

@fibonacci1729
Copy link
Contributor Author

fibonacci1729 commented Oct 31, 2024

@thomastaylor312 I think this is ready for review when you get a chance

@bacongobbler
Copy link
Contributor

bacongobbler commented Nov 1, 2024

@fibonacci1729
Copy link
Contributor Author

That's correct!

Copy link
Contributor

@bacongobbler bacongobbler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fairly harmless, so this looks good to me.

@bacongobbler bacongobbler merged commit 28c2ba0 into oras-project:main Nov 7, 2024
5 checks passed
@fibonacci1729 fibonacci1729 deleted the subject branch November 7, 2024 18:08
flavio added a commit to flavio/rust-oci-client that referenced this pull request Apr 16, 2025
== What's Changed

* Add artifactType to OciImageIndex by @rylev in oras-project#182
* chore(deps): Bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot in oras-project#183
* Add subject to OciImageManifest by @fibonacci1729 in oras-project#181
* chore: Updates thiserror and fixes cargo deny by @thomastaylor312 in oras-project#185
* chore(deps): Update itertools requirement from 0.13.0 to 0.14.0 by @dependabot in oras-project#188
* chore(deps): Update rstest requirement from 0.23.0 to 0.24.0 by @dependabot in oras-project#186
* chore(deps): Update axum requirement from 0.7 to 0.8 by @dependabot in oras-project#187
* feat: Direct Bearer Token Authentication by @prabhpreet in oras-project#191
* chore(deps): Update rstest requirement from 0.24.0 to 0.25.0 by @dependabot in oras-project#193
* feat: add HTTP proxy for client by @Xynnn007 in oras-project#194
* Improve error message by @aochagavia in oras-project#196

== New Contributors
* @fibonacci1729 made their first contribution in oras-project#181
* @prabhpreet made their first contribution in oras-project#191

**Full Changelog**: oras-project/rust-oci-client@v0.14.0...v0.15.0

Signed-off-by: Flavio Castelli <[email protected]>
flavio added a commit to flavio/rust-oci-client that referenced this pull request May 15, 2025
== What's Changed
* Add artifactType to OciImageIndex by @rylev in oras-project#182
* chore(deps): Bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot in oras-project#183
* Add subject to OciImageManifest by @fibonacci1729 in oras-project#181
* chore: Updates thiserror and fixes cargo deny by @thomastaylor312 in oras-project#185
* chore(deps): Update itertools requirement from 0.13.0 to 0.14.0 by @dependabot in oras-project#188
* chore(deps): Update rstest requirement from 0.23.0 to 0.24.0 by @dependabot in oras-project#186
* chore(deps): Update axum requirement from 0.7 to 0.8 by @dependabot in oras-project#187
* feat: Direct Bearer Token Authentication by @prabhpreet in oras-project#191
* chore(deps): Update rstest requirement from 0.24.0 to 0.25.0 by @dependabot in oras-project#193
* feat: add HTTP proxy for client by @Xynnn007 in oras-project#194
* Improve error message by @aochagavia in oras-project#196
* Print username in get-manifest command by @stepancheg in oras-project#200
* chore(deps): Update oci-spec requirement from 0.7.0 to 0.8.1 by @dependabot in oras-project#201
* chore(deps): Update testcontainers requirement from 0.23 to 0.24 by @dependabot in oras-project#202

== New Contributors
* @fibonacci1729 made their first contribution in oras-project#181
* @prabhpreet made their first contribution in oras-project#191
* @stepancheg made their first contribution in oras-project#200

**Full Changelog**: oras-project/rust-oci-client@v0.14.0...v0.15.0

Signed-off-by: Flavio Castelli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants