1fd02a13c2
* Install `buf` instead of `protoc` * Created `buf.yaml` and `buf.gen.yaml` files in the two proto directories to control how `buf` generates/lints proto code. * Invoke `buf` instead of `protoc` * Added a `proto-format` make target. * Committed the reformatted proto files. * Added a `proto-lint` make target. * Integrated proto linting with CI * Fixed tons of proto linter warnings. * Got rid of deprecated builtin protoc-gen-go grpc plugin usage. Moved to direct usage of protoc-gen-go-grpc. * Unified all proto directories / go packages around using pb prefixes but ensuring all proto packages do not have the prefix.
24 lines
738 B
YAML
24 lines
738 B
YAML
version: v1
|
|
managed:
|
|
enabled: true
|
|
go_package_prefix:
|
|
# this is not github.com/hashicorp/consul/proto because we are going
|
|
# to execute buf generate from the top level directory so that the filepaths
|
|
# contain the full path within the repo. This avoids registration conflicts
|
|
# in protocolbuffers/protobuf-go when Consul starts. Those conflicts would
|
|
# have been due to a protobuf file being registered to a global registry
|
|
# using a relative file name.
|
|
default: github.com/hashicorp/consul
|
|
plugins:
|
|
- name: go
|
|
out: .
|
|
opt:
|
|
- paths=source_relative
|
|
- name: go-grpc
|
|
out: .
|
|
opt:
|
|
- paths=source_relative
|
|
- require_unimplemented_servers=false
|
|
- name: go-binary
|
|
out: .
|