Skip to content

Commit fc312b1

Browse files
committed
Migrate Buf configuration files from v1 to v2
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent ce7b580 commit fc312b1

File tree

5 files changed

+73
-45
lines changed

5 files changed

+73
-45
lines changed

buf.gen-golang.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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:
9+
- paths=source_relative

buf.gen-noncrd.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
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:
6+
- paths=source_relative
7+
- local: protoc-gen-go-grpc
8+
out: .
9+
opt:
10+
- paths=source_relative
11+
- local: protoc-gen-docs
12+
out: .
13+
opt:
14+
- warnings=false
15+
- dictionary=./dictionaries/en-US
16+
- custom_word_list=./dictionaries/custom.txt
17+
- per_file=true
18+
- mode=html_fragment_with_front_matter
19+
- local: protoc-gen-golang-jsonshim
20+
out: .
21+
opt:
22+
- paths=source_relative

buf.gen.yaml

Lines changed: 32 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

releasenotes/notes/3612.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: release-notes/v2
2+
kind: bug-fix
3+
area: documentation
4+
issue:
5+
- https://github.com/istio/istio/issues/3612
6+
7+
releaseNotes:
8+
- |
9+
**Upgraded** Buf configuration files from v1 to v2.

0 commit comments

Comments
 (0)