mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-19 21:18:07 +02:00
fix(proto): 使用google定义类时的报错 (#678)
This commit is contained in:
parent
bc6d53e1a1
commit
3cc8d94126
tool/kratos-protoc
@ -6,7 +6,12 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
_getEcodeGen = "go get -u github.com/go-kratos/kratos/tool/protobuf/protoc-gen-ecode"
|
_getEcodeGen = "go get -u github.com/go-kratos/kratos/tool/protobuf/protoc-gen-ecode"
|
||||||
_ecodeProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --ecode_out=:."
|
_ecodeProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --ecode_out=" +
|
||||||
|
"Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types:."
|
||||||
)
|
)
|
||||||
|
|
||||||
func installEcodeGen() error {
|
func installEcodeGen() error {
|
||||||
|
@ -6,7 +6,12 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
_getGRPCGen = "go get -u github.com/gogo/protobuf/protoc-gen-gofast"
|
_getGRPCGen = "go get -u github.com/gogo/protobuf/protoc-gen-gofast"
|
||||||
_grpcProtoc = `protoc --proto_path=%s --proto_path=%s --proto_path=%s --gofast_out=plugins=grpc:.`
|
_grpcProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --gofast_out=plugins=grpc," +
|
||||||
|
"Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types:."
|
||||||
)
|
)
|
||||||
|
|
||||||
func installGRPCGen() error {
|
func installGRPCGen() error {
|
||||||
|
@ -6,7 +6,12 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
_getSwaggerGen = "go get -u github.com/go-kratos/kratos/tool/protobuf/protoc-gen-bswagger"
|
_getSwaggerGen = "go get -u github.com/go-kratos/kratos/tool/protobuf/protoc-gen-bswagger"
|
||||||
_swaggerProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bswagger_out=:."
|
_swaggerProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bswagger_out=" +
|
||||||
|
"Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types," +
|
||||||
|
"Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types:."
|
||||||
)
|
)
|
||||||
|
|
||||||
func installSwaggerGen() error {
|
func installSwaggerGen() error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user