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 protovalidate-go to v0.8.0 #3534

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

jchadwick-buf
Copy link
Member

@jchadwick-buf jchadwick-buf commented Dec 12, 2024

We had a breaking change in protovalidate-go v0.8.0, nothing major. Also updates protoyaml-go to v0.3.0 for the same reason.

Looks like the structured field path API might make it possible to improve this code. That said, it looks pretty carefully constructed, so I chose to do a 1:1 update instead. "First, do no harm."

I'll leave it to the reviewers to decide if I should be more aggressive about trying to refactor the code instead.

Copy link
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 12, 2024, 4:57 PM

Copy link
Member

@doriable doriable 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 for doing this! I've been keeping an eye out on protovalidate-go and had this update queued, so this is very helpful!

My original thought was to first do a direct replacement as you've done here, and then consider a refactor after. I think there has been a lot of changes, mostly for the better in terms of ergonomics, since the inception of the lint rule, so there's likely a lot of improvements we could make. I'm going to stamp this first, and I think it's good to merge, and I'll bring this up in our sync today in terms of how we'd like to invest in it :)

@jchadwick-buf
Copy link
Member Author

SGTM. Going to go for merge, then. Thanks!

@jchadwick-buf jchadwick-buf merged commit 2d07268 into main Dec 12, 2024
13 checks passed
@jchadwick-buf jchadwick-buf deleted the jchadwick/update-protovalidate branch December 12, 2024 17:48
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