-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Add Protobuf formatting using buf format #14907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super exciting!
src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py
Outdated
Show resolved
Hide resolved
src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py
Outdated
Show resolved
Hide resolved
Oops, didn't mean to hit approve. Looks good other than name
being ambiguous
Buf added an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great - will approve & merge once the naming weirdness is finalized
src/python/pants/backend/codegen/protobuf/lint/buf/format_rules.py
Outdated
Show resolved
Hide resolved
cc @thejcannon - this will conflict with your very exciting PR at #14903, but I'd like to merge this one first so that we can cherry-pick to 2.11 (and less churn for Jonas) |
This PR adds support for Protobuf formatting using the newly released `buf format`. I took the libery of bumping the default version of `buf`since `buf format` requires Buf v1.2.0 and above. Right now there's no check to make sure the user is actually on >v1.2.0, but that shouldn't be too hard to add if needed.
) This PR adds support for Protobuf formatting using the newly released `buf format`. I took the libery of bumping the default version of `buf`since `buf format` requires Buf v1.2.0 and above. Right now there's no check to make sure the user is actually on >v1.2.0, but that shouldn't be too hard to add if needed. [ci skip-rust]
Some simple validation to make sure that two or more `LintTargetsRequest` don't use the same name which, based on #14907 (comment), can cause some havoc. I assume this can cause issues in most goals, so might be interesting to add to more places as well. [ci skip-rust] [ci skip-build-wheels]
This PR adds support for Protobuf formatting using the newly released
buf format
. I took the libery of bumping the default version ofbuf
sincebuf format
requires Buf v1.2.0 and above. Right now there's no check to make sure the user is actually on >v1.2.0, but that shouldn't be too hard to add if needed.