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
* Add generated go/proto files to git
* Add make target make gogen to generate go/proto files
Generate *.capnp.go and structs.gen.go files in bazel and then copy to source directory in a make target.
For the case of structs.gen.go which is generated with a simple shell script, this setup is somewhat overcomplicated.
Generating the *.capnp.go files does use bazel infrastructure to get the capnp tooling.
To keep things symmetric, both cases are handled the same.
* Add CI check generated go/proto files
Detect uncommitted changes to generated go/proto files by cleaning and regenerating the files.
Fixes#2822
Most developers prefer to have the code (go/proto/*.capnp.go) directly in the git repo.
However, the linter must be able to detect the case when the source file and the generated file diverged or when the source file was removed.
The text was updated successfully, but these errors were encountered: