Hacker News new | ask | show | jobs
by GauntletWizard 939 days ago
There are several protobuf linters out there, but what I haven't seen is a protobuf linter that integrates with Git to look behind and verify that you haven't accidentally changed protobuf numbers, or reused fields, or etc. Would be handy.
2 comments

I believe buf’s breaking change detection will pick up on this. It also allows you to specify a git ref to target.

https://buf.build/docs/reference/cli/buf/breaking#against

There's a build plugin for this for Java/Maven:

https://github.com/salesforce/proto-backwards-compat-maven-p...