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

Preserve more-recently-added fields when copying/updating OCI indices #2475

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jul 1, 2024

So that, e.g., skopeo copy does not drop the artifactType field.

Also adds unit tests.

Fixes #2460 .

No non-test code changes, should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
We will add more callers soon.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... so that it does not discard the recently-added fields.

Also add unit tests.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jul 1, 2024

@AlbanBedel This fixes the reproducer from #2460 from me; an independent verification would be appreciated.

@mtrmac mtrmac added the kind/bug A defect in an existing functionality (or a PR fixing it) label Jul 1, 2024
@rhatdan
Copy link
Member

rhatdan commented Jul 2, 2024

LGTM

@AlbanBedel
Copy link

Works fine with my test case.

@mtrmac
Copy link
Collaborator Author

mtrmac commented Jul 2, 2024

Thanks for the confirmation!

@mtrmac mtrmac merged commit 9f7f648 into containers:main Jul 2, 2024
10 checks passed
@mtrmac mtrmac deleted the oci-preserve branch July 2, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A defect in an existing functionality (or a PR fixing it)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OCI image index loose the artifactType property on copy
3 participants