Skip to content

Commit

Permalink
Break proto files into public and private API
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed90 committed Dec 8, 2018
1 parent 607a994 commit 24bcf82
Show file tree
Hide file tree
Showing 8 changed files with 6,716 additions and 5,671 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ generate-grpc:
Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types,\
Mgoogle/api/annotations.proto=github.com/gogo/googleapis/google/api,\
Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types:./grpc \
grpc/authn.proto
# Workaround for https://github.com/grpc-ecosystem/grpc-gateway/issues/229.
grpc/authn.proto grpc/authn-private.proto
# Workaround for https://github.com/grpc-ecosystem/grpc-gateway/issues/229
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn.pb.gw.go && rm grpc/authn.pb.gw.go.bak
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn.pb.go && rm grpc/authn.pb.go.bak
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn.pb.go && rm grpc/authn.pb.go.bak
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn-private.pb.gw.go && rm grpc/authn-private.pb.gw.go.bak
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn-private.pb.go && rm grpc/authn-private.pb.go.bak

0 comments on commit 24bcf82

Please sign in to comment.