update CI workflow to install specific protoc version and enhance generated Protobufs handling
This commit is contained in:
1 parent
35d0739b63
commit
ce2c54acf2
3 files changed
+32
-13
No files matched your search
@@ -55,13 +55,17 @@ The module requires Go 1.27 and `google.golang.org/protobuf`.
|
||||
|
||||
## Regenerating Go code
|
||||
|
||||
Install `protoc` and the Go generator, and ensure both executables are on
|
||||
`PATH`:
|
||||
Install `protoc` 36.2 using the [official installation
|
||||
instructions](https://protobuf.dev/installation/), and ensure it and the Go
|
||||
generator are on `PATH`:
|
||||
|
||||
```sh
|
||||
protoc --version
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.12
|
||||
make proto
|
||||
```
|
||||
|
||||
`make proto` regenerates the Go files from both schemas. Commit the updated
|
||||
`.pb.go` files together with any schema changes.
|
||||
`.pb.go` files together with any schema changes. The workflow pushes generated
|
||||
files to same-repository pull request branches; for pull requests from forks,
|
||||
it reports an error if generated files are out of date.
|
||||
Reference in new issue
Block a user