Skip to content

Commit

Permalink
Add auto formatting for proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kovoy committed Jan 29, 2020
1 parent 405e58b commit e596d1b
Show file tree
Hide file tree
Showing 10 changed files with 744 additions and 589 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ grpc: buildbox
buildbox-grpc:
# standard GRPC output
echo $$PROTO_INCLUDE
find lib/ -iname *.proto | xargs clang-format -i -style='{ColumnLimit: 100, IndentWidth: 4, Language: Proto}'

cd lib/events && protoc -I=.:$$PROTO_INCLUDE \
--gofast_out=plugins=grpc:.\
*.proto
Expand Down
2 changes: 1 addition & 1 deletion build.assets/grpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG PLATFORM
ENV TARBALL protoc-${PROTOC_VER}-${PLATFORM}.zip
ENV GOGOPROTO_ROOT ${GOPATH}/src/github.com/gogo/protobuf

RUN apt-get update && apt-get install unzip
RUN apt-get update && apt-get install unzip clang-format -y

RUN curl -L -o /tmp/${TARBALL} https://github.com/google/protobuf/releases/download/v${PROTOC_VER}/${TARBALL}
RUN cd /tmp && unzip /tmp/protoc-${PROTOC_VER}-linux-x86_64.zip -d /usr/local && rm /tmp/${TARBALL}
Expand Down
44 changes: 24 additions & 20 deletions lib/auth/proto/auth.pb.go

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

Loading

0 comments on commit e596d1b

Please # to comment.