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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user