feat: add go protobuf generation (#6)

* feat: add go protobuf generation

* ci: check go protbuf generation

* refactor: use 'namely/protoc-all:1.51_1' to compile the proto instead of locally binary

* refactor: no need to add the 'bin/' igore

* chore: modify code format

* refactor: add some comments to describe our modification
This commit is contained in:
zyy17
2023-02-15 15:10:17 +08:00
committed by GitHub
parent 3e6349be12
commit 36147379c3
33 changed files with 9755 additions and 8 deletions
+12 -2
View File
@@ -1,6 +1,16 @@
.PHONY: all rust
.PHONY: all rust go go-deps
all: rust
BUILDER_CONTAINER=namely/protoc-all:1.51_1
all: rust go
rust:
cargo build
go: go-deps
docker run -t -w /greptime-proto \
--entrypoint ./scripts/generate-go.sh \
-v ${PWD}:/greptime-proto ${BUILDER_CONTAINER}
go-deps:
go mod download