Skip to content

Commit

Permalink
Format protobuf files with buf
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbrandhorst authored Apr 16, 2022
1 parent 1c5e2bb commit af573ca
Show file tree
Hide file tree
Showing 33 changed files with 1,467 additions and 1,406 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
- checkout
- run: buf build
- run: buf lint
- run: buf format -w && git diff --exit-code
- run: buf breaking --path protoc-gen-openapiv2/ --against 'https://github.com/grpc-ecosystem/grpc-gateway.git#branch=master'
proto_push:
docker:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $(GENERATE_UNBOUND_METHODS_EXAMPLE_SRCS): $(GENERATE_UNBOUND_METHODS_EXAMPLE_SPE
$(EXAMPLE_CLIENT_DIR)/generateunboundmethods/git_push.sh

install:
go install github.com/bufbuild/buf/cmd/buf@v1.1.0
go install github.com/bufbuild/buf/cmd/buf@v1.3.1
go install \
./protoc-gen-openapiv2 \
./protoc-gen-grpc-gateway
Expand Down
6 changes: 3 additions & 3 deletions examples/internal/helloworld/helloworld.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ syntax = "proto3";

package grpc.gateway.examples.internal.helloworld;

option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/helloworld";

import "google/api/annotations.proto";
import "google/protobuf/wrappers.proto";

option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/helloworld";

service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {
rpc SayHello(HelloRequest) returns (HelloReply) {
option (google.api.http) = {
get: "/say/{name}"
additional_bindings: {
Expand Down
40 changes: 20 additions & 20 deletions examples/internal/proto/examplepb/a_bit_of_everything.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af573ca

Please sign in to comment.