proto/lint: Add protobuf GitHub action and linter (#943)

* Buf upgrades

* Buf format and basic endpoint fixes

* gRPC linter fixes

* Amend buf.yaml linter exceptions

* Update README

* Freshly generated gRPC code after depends update

* Nitterinos
This commit is contained in:
Adrian Gallagher
2022-05-10 15:38:50 +10:00
committed by GitHub
parent 5266437b27
commit 61212fb8ea
19 changed files with 7206 additions and 6853 deletions

View File

@@ -52,13 +52,13 @@ This will place the following binaries in your `$GOBIN`;
Make sure that your `$GOBIN` is in your `$PATH`.
### Linux / macOS
### Linux / macOS / Windows
GoCryptoTrader requires a local installation of the `buf` cli tool that tries to make Protobuf handling more easier and reliable,
after [installation](https://docs.buf.build/installation) you'll need to run:
```shell
buf beta mod update
buf mod update
```
After previous command, make necessary changes to the `rpc.proto` spec file and run the generation command:
@@ -67,10 +67,4 @@ After previous command, make necessary changes to the `rpc.proto` spec file and
buf generate
```
### Windows
After the above dependencies are required, make necessary changes to the `rpc.proto`
spec file and run the generation scripts:
Run `gen_pb_win.bat`
If any changes were made, ensure that the `rpc.proto` file is formatted correctly by using `buf format -w`