mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
switch to buf tooling
This commit is contained in:
@@ -55,8 +55,4 @@ PROTO_SRC := pkg/proto/$(PROTO_VERSION)
|
||||
include ../.make/protobuf.mk
|
||||
|
||||
.PHONY: protobuf
|
||||
protobuf: $(PROTO_SRC)/${NAME}.pb.go \
|
||||
$(PROTO_SRC)/${NAME}.pb.micro.go \
|
||||
$(PROTO_SRC)/${NAME}.pb.web.go \
|
||||
$(PROTO_SRC)/${NAME}.swagger.json \
|
||||
../docs/extensions/${NAME}/grpc.md
|
||||
protobuf: buf-generate
|
||||
|
||||
29
settings/buf.gen.yaml
Normal file
29
settings/buf.gen.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
version: v1
|
||||
plugins:
|
||||
- name: go
|
||||
path: ../.bingo/protoc-gen-go
|
||||
out: pkg/
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- name: micro
|
||||
path: ../.bingo/protoc-gen-micro
|
||||
out: pkg/
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- name: microweb
|
||||
path: ../.bingo/protoc-gen-microweb
|
||||
out: pkg/
|
||||
opt:
|
||||
- paths=source_relative
|
||||
|
||||
- name: openapiv2
|
||||
path: ../.bingo/protoc-gen-openapiv2
|
||||
out: pkg/
|
||||
|
||||
- name: doc
|
||||
path: ../.bingo/protoc-gen-doc
|
||||
out: ../docs/extensions/settings
|
||||
opt:
|
||||
- ./templates/GRPC.tmpl,grpc.md
|
||||
17
settings/buf.lock
Normal file
17
settings/buf.lock
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generated by buf. DO NOT EDIT.
|
||||
version: v1
|
||||
deps:
|
||||
- remote: buf.build
|
||||
owner: googleapis
|
||||
repository: googleapis
|
||||
branch: main
|
||||
commit: ca45b9d9c51849e898845743a28b0eb0
|
||||
digest: b1--B2JdvzLV2KI5pYMG9AHJHFGznqXfZKjKwcqBuXhGgw=
|
||||
create_time: 2021-10-14T15:09:30.598677Z
|
||||
- remote: buf.build
|
||||
owner: grpc-ecosystem
|
||||
repository: grpc-gateway
|
||||
branch: main
|
||||
commit: 462ede5f3dee45569df6317bda220b1b
|
||||
digest: b1-4FNKWjnS2yafyeOdqW8u-s7w1pJBHjz0Z6CbOL-Ipk0=
|
||||
create_time: 2021-10-14T01:55:03.476639Z
|
||||
10
settings/buf.yaml
Normal file
10
settings/buf.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: v1
|
||||
lint:
|
||||
use:
|
||||
- DEFAULT
|
||||
deps:
|
||||
- buf.build/googleapis/googleapis
|
||||
- buf.build/grpc-ecosystem/grpc-gateway
|
||||
breaking:
|
||||
use:
|
||||
- FILE
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
||||
// source: settings.proto
|
||||
// source: proto/v0/settings.proto
|
||||
|
||||
package proto
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
checks = ["all", "-ST1003", "-ST1000", "-SA1019"]
|
||||
Reference in New Issue
Block a user