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

Add find_manifest_descriptor_with_tag #28

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

ariel-miculas
Copy link
Collaborator

Refactor find_manifest_with_tag to use this new function.

@ariel-miculas
Copy link
Collaborator Author

@cgwalters could you please take a look?

Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Looks sane to me; would be nice to have a unit test but I won't block on that.

Refactor find_manifest_with_tag to use this new function.

Signed-off-by: Ariel Miculas-Trif <amiculas@cisco.com>
…ndex>

The index.json file MUST exist according to the OCI Image Layout Spec
[1], thus read_index should return the ImageIndex directly, there's no
need to wrap it into an Option.

[1] https://github.com/opencontainers/image-spec/blob/main/image-layout.md

Signed-off-by: Ariel Miculas-Trif <amiculas@cisco.com>
@cgwalters cgwalters merged commit 6817b48 into containers:main Oct 12, 2024
3 checks passed
@ariel-miculas
Copy link
Collaborator Author

Thanks, @cgwalters! Is there anything else in the backlog before releasing 0.4? I would have liked to address #27, but I feel like my ideas are too convoluted.

@cgwalters
Copy link
Collaborator

Is there anything else in the backlog before releasing 0.4?

We should probably review #29 right?

ariel-miculas added a commit to ariel-miculas/puzzlefs that referenced this pull request Oct 14, 2024
Now that [1] was merged, we can use find_manifest_descriptor_with_tag
and remove copy-pasted code from ocidir-rs.

[1] containers/ocidir-rs#28

Signed-off-by: Ariel Miculas-Trif <amiculas@cisco.com>
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