Browse Source

Upgrade buf config from v1beta1 to v1

Signed-off-by: Thane Thomson <connect@thanethomson.com>
pull/7975/head
Thane Thomson 3 years ago
parent
commit
342a65c1fb
No known key found for this signature in database GPG Key ID: 19811391D676EE45
4 changed files with 19 additions and 23 deletions
  1. +0
    -14
      buf.gen.yaml
  2. +4
    -0
      buf.work.yaml
  3. +4
    -9
      proto/buf.yaml
  4. +11
    -0
      third_party/proto/buf.yaml

+ 0
- 14
buf.gen.yaml View File

@ -1,14 +0,0 @@
# The version of the generation template (required).
# The only currently-valid value is v1beta1.
version: v1beta1
# The plugins to run.
plugins:
# The name of the plugin.
- name: gogofaster
# The directory where the generated proto output will be written.
# The directory is relative to where the generation tool was run.
out: proto
# Set options to assign import paths to the well-known types
# and to enable service generation.
opt: Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration,plugins=grpc,paths=source_relative

+ 4
- 0
buf.work.yaml View File

@ -0,0 +1,4 @@
version: v1
directories:
- proto
- third_party/proto

buf.yaml → proto/buf.yaml View File


+ 11
- 0
third_party/proto/buf.yaml View File

@ -0,0 +1,11 @@
version: v1
breaking:
use:
- FILE
lint:
use:
- BASIC
- FILE_LOWER_SNAKE_CASE
- UNARY_RPC
ignore:
- gogoproto

Loading…
Cancel
Save