Skip to content

Commit 24bcf82

Browse files
committed
Break proto files into public and private API
1 parent 607a994 commit 24bcf82

8 files changed

+6716
-5671
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ generate-grpc:
119119
Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types,\
120120
Mgoogle/api/annotations.proto=github.com/gogo/googleapis/google/api,\
121121
Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types:./grpc \
122-
grpc/authn.proto
123-
# Workaround for https://github.com/grpc-ecosystem/grpc-gateway/issues/229.
122+
grpc/authn.proto grpc/authn-private.proto
123+
# Workaround for https://github.com/grpc-ecosystem/grpc-gateway/issues/229
124124
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn.pb.gw.go && rm grpc/authn.pb.gw.go.bak
125-
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn.pb.go && rm grpc/authn.pb.go.bak
125+
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn.pb.go && rm grpc/authn.pb.go.bak
126+
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn-private.pb.gw.go && rm grpc/authn-private.pb.gw.go.bak
127+
sed -i.bak "s/empty.Empty/types.Empty/g" grpc/authn-private.pb.go && rm grpc/authn-private.pb.go.bak

0 commit comments

Comments
 (0)