From 5f8bb6b88e7c5de1f0bdf1909e7d404ab9c1edfa Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 7 Nov 2019 11:32:09 +0800 Subject: [PATCH 1/3] fixed swagger method --- tool/protobuf/protoc-gen-bswagger/generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/protobuf/protoc-gen-bswagger/generator.go b/tool/protobuf/protoc-gen-bswagger/generator.go index b39fe16f2..3552d176e 100644 --- a/tool/protobuf/protoc-gen-bswagger/generator.go +++ b/tool/protobuf/protoc-gen-bswagger/generator.go @@ -166,7 +166,7 @@ func (t *swaggerGen) getOperationByHTTPMethod(httpMethod string, pathItem *swagg case http.MethodPut: pathItem.Put = op case http.MethodDelete: - pathItem.Put = op + pathItem.Delete = op case http.MethodPatch: pathItem.Patch = op default: From fa790d14535a885940581a6e1e379229e6924fbd Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 8 Nov 2019 10:11:44 +0800 Subject: [PATCH 2/3] fix apollo validate (#423) --- pkg/conf/paladin/apollo/apollo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/conf/paladin/apollo/apollo.go b/pkg/conf/paladin/apollo/apollo.go index 0ce83f9de..e30317edd 100644 --- a/pkg/conf/paladin/apollo/apollo.go +++ b/pkg/conf/paladin/apollo/apollo.go @@ -96,7 +96,7 @@ func buildConfigForApollo() (c *Config, err error) { if clusterFromEnv := os.Getenv("APOLLO_CLUSTER"); clusterFromEnv != "" { confCluster = clusterFromEnv } - if confAppID == "" { + if confCluster == "" { err = errors.New("invalid apollo cluster, pass it via APOLLO_CLUSTER=xxx with env or --apollo.cluster=xxx with flag") return } From db8c1424974eb916cacc7f2e15316d408fef6bad Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 12 Nov 2019 20:06:51 +0800 Subject: [PATCH 3/3] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 594d1eb2c..e1670b436 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Go version>=1.13 ### Installation ```shell -go get -u github.com/bilibili/kratos/tool/kratos +GO111MODULE=on && go get -u github.com/bilibili/kratos/tool/kratos cd $GOPATH/src kratos new kratos-demo ```