Skip to content

Commit f7496fb

Browse files
committed
build: migrate to buf v2
1 parent 3583905 commit f7496fb

File tree

11 files changed

+625
-463
lines changed

11 files changed

+625
-463
lines changed

buf.gen.yaml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
#!/usr/bin/env -S buf generate --template
2-
---
3-
version: v1
1+
version: v2
42
managed:
53
enabled: true
6-
go_package_prefix:
7-
default: github.com/openfga/api/proto
8-
except:
9-
- buf.build/googleapis/googleapis
10-
- buf.build/envoyproxy/protoc-gen-validate
11-
- buf.build/grpc-ecosystem/grpc-gateway
4+
disable:
5+
- file_option: go_package
6+
module: buf.build/googleapis/googleapis
7+
- file_option: go_package
8+
module: buf.build/envoyproxy/protoc-gen-validate
9+
- file_option: go_package
10+
module: buf.build/grpc-ecosystem/grpc-gateway
11+
override:
12+
- file_option: go_package_prefix
13+
value: github.com/openfga/api/proto
1214
plugins:
13-
- plugin: buf.build/protocolbuffers/go:v1.34.0
15+
- remote: buf.build/protocolbuffers/go:v1.34.2
1416
out: proto/
15-
opt:
16-
- paths=source_relative
17-
- plugin: buf.build/grpc/go:v1.3.0
17+
opt: paths=source_relative
18+
- remote: buf.build/grpc/go:v1.5.1
1819
out: proto/
19-
opt:
20-
- paths=source_relative
21-
- plugin: buf.build/bufbuild/validate-go:v1.0.4
20+
opt: paths=source_relative
21+
- remote: buf.build/bufbuild/validate-go:v1.1.0
2222
out: proto/
23-
opt:
24-
- paths=source_relative
25-
- plugin: buf.build/grpc-ecosystem/gateway:v2.19.1
23+
opt: paths=source_relative
24+
- remote: buf.build/grpc-ecosystem/gateway:v2.22.0
2625
out: proto/
2726
opt:
2827
- paths=source_relative
2928
- logtostderr=true
30-
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.16.0
29+
- remote: buf.build/grpc-ecosystem/openapiv2:v2.22.0
3130
out: docs/openapiv2
3231
opt:
3332
- openapi_naming_strategy=simple

buf.lock

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

buf.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
version: v1
1+
version: v2
22
name: buf.build/openfga/api
33
deps:
44
- buf.build/envoyproxy/protoc-gen-validate
5-
- buf.build/grpc-ecosystem/grpc-gateway
65
- buf.build/googleapis/googleapis
7-
breaking:
8-
ignore_unstable_packages: true
9-
6+
- buf.build/grpc-ecosystem/grpc-gateway
107
lint:
11-
allow_comment_ignores: true
8+
except:
9+
- FIELD_NOT_REQUIRED
10+
- PACKAGE_NO_IMPORT_CYCLE
1211
ignore_only:
13-
ENUM_VALUE_UPPER_SNAKE_CASE:
14-
- openfga/v1/errors_ignore.proto
1512
ENUM_VALUE_PREFIX:
1613
- openfga/v1/errors_ignore.proto
14+
ENUM_VALUE_UPPER_SNAKE_CASE:
15+
- openfga/v1/errors_ignore.proto
1716
ENUM_ZERO_VALUE_SUFFIX:
18-
- openfga/v1/errors_ignore.proto
17+
- openfga/v1/errors_ignore.proto
18+
breaking:
19+
except:
20+
- EXTENSION_NO_DELETE
21+
- FIELD_SAME_DEFAULT
22+
ignore_unstable_packages: true

0 commit comments

Comments
 (0)