open-consul/proto/buf.gen.yaml
Matt Keeler 482c9e1122
Fix usage of protoc-gen-go-binary (#15920)
* Fix usage of protoc-gen-go-binary
* Pin protoc-gen-go-binary version
2023-01-06 11:30:54 -05:00

30 lines
855 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: .
opt:
- paths=source_relative
- name: consul-rate-limit
out: .
opt:
- paths=source_relative