add generate
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
LOCAL_BIN := $(CURDIR)/bin
|
||||
PATH := $(LOCAL_BIN):$(PATH)
|
||||
|
||||
local-go-init: export GOBIN := $(LOCAL_BIN)
|
||||
local-go-init:
|
||||
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
|
||||
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
|
||||
go get google.golang.org/protobuf/cmd/protoc-gen-go
|
||||
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
||||
go install \
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
|
||||
@@ -9,8 +14,8 @@ local-go-init:
|
||||
google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
||||
|
||||
generate:
|
||||
rm -rf proto
|
||||
mkdir -p proto
|
||||
rm -rf proto resources
|
||||
mkdir -p proto resources
|
||||
protoc \
|
||||
-I ./api \
|
||||
-I ./third_party \
|
||||
|
||||
Reference in New Issue
Block a user