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

Update BaseSignedEntity interface implementation #333

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

cmurphy
Copy link
Contributor

@cmurphy cmurphy commented Nov 15, 2024

The SignedEntity interface has gone through a few iterations. The BaseSignedEntity struct was not keeping up with it, which wasn't caught because it is never used in sigstore-go. This change updates the struct to implement the interface it was meant to implement, and adds an assignment statement to make sure future errors in updates are caught at compile time.

Summary

Release Note

Documentation

The SignedEntity interface has gone through a few iterations. The
BaseSignedEntity struct was not keeping up with it, which wasn't caught
because it is never used in sigstore-go. This change updates the struct
to implement the interface it was meant to implement, and adds an
assignment statement to make sure future errors in updates are caught at
compile time.

Signed-off-by: Colleen Murphy <colleenmurphy@google.com>
@cmurphy cmurphy requested a review from a team as a code owner November 15, 2024 17:20
Copy link
Member

@codysoyland codysoyland left a comment

Choose a reason for hiding this comment

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

Good find, thanks for adding the interface assertion on line 97 so we catch this in the future too!

@codysoyland codysoyland merged commit 5970df0 into sigstore:main Nov 15, 2024
10 checks passed
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