-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
* Migrate to buf v2 * Remove deprecated grpc client creation
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
MAKEFLAGS += --no-print-directory | ||
BUF_VERSION := 1.32.2 | ||
|
||
_buf: | ||
docker run --rm \ | ||
--entrypoint sh \ | ||
-v $(PWD)/..:/workspace \ | ||
-w /workspace/proto \ | ||
bufbuild/buf:$(BUF_VERSION) \ | ||
-c "buf $(CMD) && chown -R $(shell id -u):$(shell id -g) /workspace" | ||
|
||
|
||
.PHONY: protolint | ||
protolint: | ||
buf format -w metalstack/io/s3/api/v1 | ||
buf lint -v | ||
@$(MAKE) _buf CMD="format -w" | ||
@$(MAKE) _buf CMD="lint -v" | ||
|
||
.PHONY: protoc | ||
protoc: protolint | ||
buf generate -v | ||
@$(MAKE) _buf CMD="generate -v" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
version: v1 | ||
version: v2 | ||
plugins: | ||
# generate go structs for protocol buffer definition | ||
- plugin: buf.build/protocolbuffers/go:v1.33.0 | ||
- remote: buf.build/protocolbuffers/go:v1.34.2 | ||
out: ../ | ||
# generate gRPC stubs in golang | ||
- plugin: buf.build/grpc/go:v1.3.0 | ||
- remote: buf.build/grpc/go:v1.3.0 | ||
out: ../ | ||
opt: | ||
- require_unimplemented_servers=false | ||
opt: require_unimplemented_servers=false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
version: v1 | ||
breaking: | ||
use: | ||
- FILE | ||
version: v2 | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
# TODO remove these | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
- RPC_REQUEST_RESPONSE_UNIQUE | ||
- RPC_REQUEST_STANDARD_NAME | ||
- RPC_RESPONSE_STANDARD_NAME | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.