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 ProtobufBundle.MinVersion #228

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Fix ProtobufBundle.MinVersion #228

merged 1 commit into from
Jul 11, 2024

Conversation

codysoyland
Copy link
Member

Fixes #227

Signed-off-by: Cody Soyland codysoyland@github.com

Summary

Release Note

Documentation

Fixes #227

Signed-off-by: Cody Soyland <codysoyland@github.com>
}{
{"old-format", "application/vnd.dev.sigstore.bundle+json;version=0.1", "v0.1", true},
{"old-format-unexpected", "application/vnd.dev.sigstore.bundle+json;version=0.1", "v0.2", false},
{"old-format-without-v", "application/vnd.dev.sigstore.bundle+json;version=0.1", "0.1", true},
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to support matching both with and without the preceding v, or should we standardize around one?

Copy link
Member

@kommendorkapten kommendorkapten Jul 11, 2024

Choose a reason for hiding this comment

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

I would favour the robustness principle here, i.e what's implemented.
As this is a simple helper function, requiring stricter formatting does not seem to aid in any correctness IMHO.

edit: grammer fix.

Copy link
Member

@kommendorkapten kommendorkapten left a comment

Choose a reason for hiding this comment

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

🚀

@codysoyland codysoyland merged commit 47683f5 into main Jul 11, 2024
11 checks passed
@codysoyland codysoyland deleted the codysoyland/issue227 branch July 11, 2024 12:47
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.

MinVersion not compatible with Bundle v0.3
3 participants