Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 605 Bytes

README.MD

File metadata and controls

38 lines (26 loc) · 605 Bytes

Buf - Linting protobuf schemas

Buf is used to validate changes against snapshots of schemas.

Install buf

https://github.com/bufbuild/buf

Follow the instructions: https://docs.buf.build/installation/#via-homebrew

MAKE SURE YOU cd into buf folder !

brew tap bufbuild/buf
brew install buf
  • Create a buf.yaml file
  • lint your proto files with:
buf lint .

Try to fix those lint errors!

If you get stuck - switch to lint-fixed branch :)

Taking a snapshot:

buf build -o image.json

Make a breaking change, and run:

buf breaking --against image.json