-
Notifications
You must be signed in to change notification settings - Fork 278
/
buf.gen.yaml
executable file
·29 lines (29 loc) · 1.03 KB
/
buf.gen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env -S buf generate -o pkg/proto proto/internal --template
---
version: 'v1'
managed:
enabled: true
go_package_prefix:
default: 'github.com/authzed/spicedb/pkg/proto'
except:
- 'buf.build/envoyproxy/protoc-gen-validate'
- 'buf.build/authzed/api'
- 'buf.build/googleapis/googleapis'
plugins:
- name: 'go'
path: ["go", "run", "google.golang.org/protobuf/cmd/protoc-gen-go"]
out: '.'
opt: 'paths=source_relative'
- name: 'go-grpc'
out: '.'
path: ["go", "run", "google.golang.org/grpc/cmd/protoc-gen-go-grpc"]
opt: 'paths=source_relative'
- name: 'go-vtproto'
path: ["go", "run", "github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto"]
out: '.'
# To generate pooling methods, you must add an additional `pool=fully/qualified.ProtoMessageType`
opt: 'paths=source_relative,features=marshal+unmarshal+size+clone+pool+equal'
- name: 'validate'
path: ["go", "run", "github.com/envoyproxy/protoc-gen-validate"]
out: '.'
opt: 'paths=source_relative,lang=go'