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

Fix bug when saving and loading a manifest list #1147

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

priyawadhwa
Copy link
Contributor

Save and load were assuming we were only saving and loading SignedImages. This PR should add support for saving and loading SignedImageIndex's as well!

ref #1015

Signed-off-by: Priya Wadhwa priyawadhwa@google.com

fix: saving and loading a signed image index to disk

cc @haydentherapper who is working on verification for this!

Save and load were assuming we were only saving and loading SignedImages. This PR should add support for saving and loading SignedImageIndex's as well!

Signed-off-by: Priya Wadhwa <priyawadhwa@google.com>
@dlorenc dlorenc merged commit 430080f into sigstore:main Dec 7, 2021
@github-actions github-actions bot added this to the v1.4.0 milestone Dec 7, 2021
Comment on lines 99 to +104
if err != nil {
return nil, err
}
if img == nil {
return nil, nil
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if err != nil {
return nil, err
}
if img == nil {
return nil, nil
}
if img == nil || err != nil {
return nil, err
}

@priyawadhwa priyawadhwa deleted the fix-save-bug branch December 7, 2021 01:31
@cpanato cpanato modified the milestones: v1.4.0, v1.4.1 Dec 7, 2021
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.

4 participants