Buf is used to validate changes against snapshots of schemas.
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