Skip to content

Commit 8bbcbc5

Browse files
committed
Update buf to v2
1 parent 6dc53a5 commit 8bbcbc5

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

buf.gen.yaml

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
version: v1
1+
version: v2
22
plugins:
3-
# generate go structs for protocol buffer defination
4-
- plugin: buf.build/protocolbuffers/go:v1.31.0
3+
- remote: buf.build/protocolbuffers/go:v1.31.0
54
out: server/gen
6-
opt:
7-
- paths=source_relative
8-
# generate gRPC stubs in golang
9-
- plugin: buf.build/grpc/go:v1.3.0
5+
opt: paths=source_relative
6+
- remote: buf.build/grpc/go:v1.3.0
107
out: server/gen
118
opt:
129
- paths=source_relative
1310
- require_unimplemented_servers=false
14-
# generate reverse proxy from protocol definations
15-
- plugin: buf.build/grpc-ecosystem/gateway:v2.16.0
11+
- remote: buf.build/grpc-ecosystem/gateway:v2.16.0
1612
out: server/gen/gateway
1713
opt:
1814
- paths=source_relative
1915
- standalone=true
2016
- logtostderr=true
21-
# generate openapi documentation for api
22-
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.16.0
17+
- remote: buf.build/grpc-ecosystem/openapiv2:v2.16.0
2318
out: server/gen

buf.yaml

-9
This file was deleted.

server/proto/buf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
version: v1
2-
name: buf.build/yourorg/myprotos
2+
name: github.com/demophoon/shrls
33
deps:
44
- buf.build/googleapis/googleapis

0 commit comments

Comments
 (0)