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

Remove go-playground/validator dependency from pkg/pki #1817

Merged
merged 1 commit into from Nov 8, 2023

Conversation

steiza
Copy link
Member

@steiza steiza commented Nov 8, 2023

Summary

It might seem silly, but this reduces the size of sigstore-go by over 1 MB. See See sigstore/sigstore-go#23.

We're already using asaskevich/govalidator elsewhere in Rekor, so no new dependencies added.

If we wanted to remove go-playground/validator entirely from Rekor (which would shrink rekor-cli by over 1 MB as well), we'd need additional work to rekor-cli/app/ files pflags.go and validate.go.

Release Note

NONE

Documentation

N/A

See sigstore/sigstore-go#23.

It might seem silly, but this reduces the size of sigstore-go by over 1 MB.
We're already using asaskevich/govalidator elsewhere in Rekor, so no new
dependencies added.

If we wanted to remove go-playground/validator entirely from Rekor (which
would shrink rekor-cli by over 1 MB as well), we'd need additional work
to rekor-cli/app/ files pflags.go and validate.go.

Signed-off-by: Zach Steindler <steiza@github.com>
@steiza steiza requested a review from a team as a code owner November 8, 2023 14:09
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #1817 (9c6e4b4) into main (aac533d) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1817      +/-   ##
==========================================
- Coverage   66.50%   66.48%   -0.02%     
==========================================
  Files          90       90              
  Lines        9051     9047       -4     
==========================================
- Hits         6019     6015       -4     
  Misses       2302     2302              
  Partials      730      730              
Flag Coverage Δ
e2etests 48.12% <50.00%> (-0.01%) ⬇️
unittests 47.51% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/pki/pgp/pgp.go 80.00% <100.00%> (-0.18%) ⬇️
pkg/pki/x509/x509.go 72.18% <100.00%> (-0.33%) ⬇️

@bobcallaway bobcallaway merged commit b681a14 into sigstore:main Nov 8, 2023
14 checks passed
@github-actions github-actions bot added this to the v1.2.2 milestone Nov 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.

None yet

2 participants