forked from authzed/spicedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuf.gen.yaml
executable file
·40 lines (40 loc) · 1.23 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
30
31
32
33
34
35
36
37
38
39
40
#!/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"
# override:
# -google: google.golang.org/genproto/googleapis
# - "authzed/api"
# - "protoc-gen-openapiv2"
# - "google"
# - "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"