Skip to content

Commit

Permalink
feat: unique grpc proto name (#1315)
Browse files Browse the repository at this point in the history
Co-authored-by: David Ragot <david@formance.com>
  • Loading branch information
Dav-14 and David Ragot committed Mar 8, 2024
1 parent 98e45b0 commit 239e6cf
Show file tree
Hide file tree
Showing 16 changed files with 549 additions and 565 deletions.
13 changes: 4 additions & 9 deletions ee/agent/Earthfile
Expand Up @@ -80,16 +80,11 @@ tidy:
DO --pass-args stack+GO_TIDY

grpc-generate:
FROM core+builder-image
RUN apk add --no-cache protobuf git protobuf-dev && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
WORKDIR /src
RUN mkdir generated
COPY server.proto .
RUN protoc --go_out=generated --go_opt=paths=source_relative --go-grpc_out=generated --go-grpc_opt=paths=source_relative server.proto
FROM core+grpc-base
LET protoName=agent.proto
COPY $protoName .
DO core+GRPC_GEN --protoName=$protoName
SAVE ARTIFACT generated AS LOCAL internal/generated

tests:
FROM core+builder-image
RUN apk update && apk add bash
Expand Down
File renamed without changes.

0 comments on commit 239e6cf

Please sign in to comment.