mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 15:10:49 +00:00
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:
@@ -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`
|
||||
Reference in New Issue
Block a user