Skip to content

Commit 9a03d83

Browse files
authored
Migrate to buf v2 (#531)
1 parent 2956956 commit 9a03d83

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

proto/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MAKEFLAGS += --no-print-directory
2-
BUF_VERSION := 1.31.0
2+
BUF_VERSION := 1.32.2
33

44
_buf:
55
docker run --rm \
@@ -11,7 +11,7 @@ _buf:
1111

1212
.PHONY: protolint
1313
protolint:
14-
@$(MAKE) _buf CMD="format -w ."
14+
@$(MAKE) _buf CMD="format -w"
1515
@$(MAKE) _buf CMD="lint -v"
1616

1717
.PHONY: protoc

proto/buf.gen.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
version: v1
1+
version: v2
22
plugins:
3-
# generate go structs for protocol buffer definition
4-
- plugin: buf.build/protocolbuffers/go:v1.34.1
3+
- remote: buf.build/protocolbuffers/go:v1.34.1
54
out: ../pkg/api
6-
# generate gRPC stubs in golang
7-
- plugin: buf.build/grpc/go:v1.3.0
5+
- remote: buf.build/grpc/go:v1.3.0
86
out: ../pkg/api
9-
opt:
10-
- require_unimplemented_servers=false
7+
opt: require_unimplemented_servers=false

proto/buf.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
version: v1
1+
version: v2
22
lint:
33
use:
44
- DEFAULT
55
except:
6-
# TODO remove these
7-
- SERVICE_SUFFIX
6+
- FIELD_NOT_REQUIRED
7+
- PACKAGE_NO_IMPORT_CYCLE
88
- RPC_REQUEST_STANDARD_NAME
99
- RPC_RESPONSE_STANDARD_NAME
10+
- SERVICE_SUFFIX
11+
disallow_comment_ignores: true
12+
breaking:
13+
except:
14+
- EXTENSION_NO_DELETE
15+
- FIELD_SAME_DEFAULT

0 commit comments

Comments
 (0)