You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* proto: add buf and protogen script
- add buf with minimal changes
- add protogen script to easier generate proto files
Signed-off-by: Marko Baricevic <[email protected]>
* add protoc needs
* add some needed shell cmds
* remove buf from tools as it is not needed everytime
* add proto lint and breakage to ci
* add section in changelog and upgrading files
* address pr comments
* remove space in circle config
* remove spaces in makefile comment
* add section on contributing on how to work with proto
* bump buf to 0.7
* test bufbuild image
* test install make in bufbuild image
* revert to tendermintdev image
* Update Makefile
Co-Authored-By: Anton Kaliaev <[email protected]>
Co-authored-by: Anton Kaliaev <[email protected]>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,10 @@ need. Instead of running `go get -u=patch`, which will update anything,
98
98
specify exactly the dependency you want to update, eg.
99
99
`GO111MODULE=on go get -u github.com/tendermint/go-amino@master`.
100
100
101
+
## Protobuf
102
+
103
+
When working with [protobuf](https://developers.google.com/protocol-buffers) there are a few things you should know. We use [buf](https://buf.build/) for our linting and breaking changes checking. If you would like to run linting and check if the changes you have made are breaking then you will have to install the needed dependencies with `make buf`. Then the linting cmd will be `make proto-lint` and the breaking changes check will be `make proto-check-breaking`. To generate new stubs based off of your changes you can run `make proto-gen` (you can do this outside of GOPATH).
104
+
101
105
## Vagrant
102
106
103
107
If you are a [Vagrant](https://www.vagrantup.com/) user, you can get started
0 commit comments