diff --git a/buf.gen.yaml b/buf.gen.yaml index f4b7301fe33fce209d84b0701c6fae35191ddcfa..27d3e8d580d69c639e760c2704ea4f1d84b35d0b 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,18 +1,16 @@ -version: v1beta1 +version: v1 plugins: - - name: go + - remote: buf.build/library/plugins/go:v1.27.1-1 out: go opt: - paths=source_relative - - name: go-grpc + - remote: buf.build/library/plugins/go-grpc:v1.1.0-2 out: go opt: - paths=source_relative - - name: js - out: web - opt: - - import_style=commonjs,binary - - name: grpc-web - out: web + - remote: buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.6.0-1 + out: go opt: - - import_style=commonjs+dts,mode=grpcwebtext + - paths=source_relative + - remote: buf.build/grpc-ecosystem/plugins/openapiv2:v2.6.0-1 + out: openapiv2 diff --git a/buf.work.yaml b/buf.work.yaml new file mode 100644 index 0000000000000000000000000000000000000000..53eb3c3a033a24cccaee441435920348817a81b6 --- /dev/null +++ b/buf.work.yaml @@ -0,0 +1,4 @@ +version: v1 +directories: + - proto + - deps diff --git a/buf.yaml b/buf.yaml deleted file mode 100644 index 5c873b09d07bd11c53f983d81194be77f1ef5993..0000000000000000000000000000000000000000 --- a/buf.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: v1beta1 -build: - roots: - - proto - - deps - excludes: - - deps/github.com/openconfig/gnmi/testing -lint: - use: - - DEFAULT -breaking: - use: - - FILE diff --git a/proto/buf.yaml b/proto/buf.yaml new file mode 100644 index 0000000000000000000000000000000000000000..732d25a3e4a34774a6269c06642128e86c49def8 --- /dev/null +++ b/proto/buf.yaml @@ -0,0 +1,9 @@ +version: v1 +deps: + - buf.build/googleapis/googleapis +lint: + use: + - DEFAULT +breaking: + use: + - FILE