fix kratos update

pull/172/head
Tony 5 years ago
parent aad6ecf1b6
commit 6e4ab6cf3c
  1. 2
      tool/kratos-protoc/bm.go
  2. 2
      tool/kratos-protoc/grpc.go
  3. 2
      tool/kratos-protoc/swagger.go
  4. 4
      tool/kratos/tool_index.go

@ -7,7 +7,7 @@ import (
)
const (
_getBMGen = "go get github.com/bilibili/kratos/tool/protobuf/protoc-gen-bm"
_getBMGen = "go get -u github.com/bilibili/kratos/tool/protobuf/protoc-gen-bm"
_bmProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bm_out=explicit_http=true:."
)

@ -7,7 +7,7 @@ import (
)
const (
_getGRPCGen = "go get 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:.`
)

@ -7,7 +7,7 @@ import (
)
const (
_getSwaggerGen = "go get github.com/bilibili/kratos/tool/protobuf/protoc-gen-bswagger"
_getSwaggerGen = "go get -u github.com/bilibili/kratos/tool/protobuf/protoc-gen-bswagger"
_swaggerProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bswagger_out=explicit_http=true:."
)

@ -6,7 +6,7 @@ var toolIndexs = []*Tool{
&Tool{
Name: "kratos",
Alias: "kratos",
BuildTime: time.Date(2019, 4, 2, 0, 0, 0, 0, time.Local),
BuildTime: time.Date(2019, 6, 21, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/bilibili/kratos/tool/kratos",
Summary: "Kratos工具集本体",
Platform: []string{"darwin", "linux", "windows"},
@ -15,7 +15,7 @@ var toolIndexs = []*Tool{
&Tool{
Name: "protoc",
Alias: "kratos-protoc",
BuildTime: time.Date(2019, 5, 4, 0, 0, 0, 0, time.Local),
BuildTime: time.Date(2019, 6, 21, 0, 0, 0, 0, time.Local),
Install: "go get -u github.com/bilibili/kratos/tool/kratos-protoc",
Summary: "快速方便生成pb.go的protoc封装,windows、Linux请先安装protoc工具",
Platform: []string{"darwin", "linux", "windows"},

Loading…
Cancel
Save