Skip to content

Commit 4f33227

Browse files
committed
Migrate Buf configuration files from v1 to v2
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 87d778d commit 4f33227

File tree

4 files changed

+45
-45
lines changed

4 files changed

+45
-45
lines changed

buf.gen-golang.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# buf.gen.yaml sets up the generation configuration for all of our plugins.
22
# Note: buf does not allow multi roots that are within each other; as a result, the common-protos folders are
33
# symlinked into the top level directory.
4-
version: v1
4+
version: v2
55
plugins:
6-
- name: go
7-
out: .
8-
opt: paths=source_relative
6+
- local: protoc-gen-go
7+
out: .
8+
opt: paths=source_relative

buf.gen-noncrd.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
version: v1
1+
version: v2
22
plugins:
3-
- name: go
4-
out: .
5-
opt: paths=source_relative
6-
- name: go-grpc
7-
out: .
8-
opt: paths=source_relative
9-
- name: docs
10-
out: .
11-
opt: warnings=false,dictionary=./dictionaries/en-US,custom_word_list=./dictionaries/custom.txt,per_file=true,mode=html_fragment_with_front_matter
12-
- name: golang-jsonshim
13-
out: .
14-
opt: paths=source_relative
3+
- local: protoc-gen-go
4+
out: .
5+
opt: paths=source_relative
6+
- local: protoc-gen-go-grpc
7+
out: .
8+
opt: paths=source_relative
9+
- local: protoc-gen-docs
10+
out: .
11+
opt: warnings=false,dictionary=./dictionaries/en-US,custom_word_list=./dictionaries/custom.txt,per_file=true,mode=html_fragment_with_front_matter
12+
- local: protoc-gen-golang-jsonshim
13+
out: .
14+
opt: paths=source_relative

buf.gen.yaml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buf.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
version: v1
2-
build:
3-
excludes:
4-
- common-protos
1+
version: v2
2+
modules:
3+
- path: .
4+
excludes:
5+
- common-protos
56
breaking:
67
use:
7-
- WIRE_JSON
8+
- WIRE_JSON
89
lint:
910
use:
1011
- BASIC
1112
except:
1213
- FIELD_LOWER_SNAKE_CASE
1314
- PACKAGE_DIRECTORY_MATCH
14-
allow_comment_ignores: true

0 commit comments

Comments
 (0)