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

Cleanup: Add Digest to the SignedEntity interface. #2960

Merged
merged 1 commit into from
May 8, 2023

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented May 8, 2023

🧹 We have worked around the absence of this in the core interface (while implemented in both Signed{Entity,Image}) a variety of places.

I will start cleaning those up after confirming adding it doesn't break anything in-tree.

/kind cleanup

Release Note

  • oci.SignedEntity now requires a Digest method (which was already largely assumed because of the two implementations.

Documentation

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #2960 (df33d6c) into main (3121a17) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2960   +/-   ##
=======================================
  Coverage   30.26%   30.26%           
=======================================
  Files         151      151           
  Lines        9469     9469           
=======================================
  Hits         2866     2866           
  Misses       6158     6158           
  Partials      445      445           
Impacted Files Coverage Δ
pkg/oci/remote/remote.go 38.25% <100.00%> (ø)
pkg/oci/remote/write.go 14.18% <100.00%> (ø)

🧹 We have worked around the absence of this in the core interface (while implemented in both `Signed{Entity,Image}`) a variety of places.

This allows us to clean up those workarounds downstream.

/kind cleanup

Signed-off-by: Matt Moore <[email protected]>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

Thank you looks great to me

@mattmoor mattmoor merged commit fa32dd5 into sigstore:main May 8, 2023
@mattmoor mattmoor deleted the digestable branch May 8, 2023 14:23
@github-actions github-actions bot added this to the v1.14.0 milestone May 8, 2023
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.

3 participants