From 53d5795def4a4055a15fe950cf3b739e4fd211f9 Mon Sep 17 00:00:00 2001 From: yoogo Date: Sun, 3 Apr 2022 00:55:38 +0800 Subject: [PATCH] fix(cmd): protoc-gen-go-http use self release (#1909) --- cmd/protoc-gen-go-http/http.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/protoc-gen-go-http/http.go b/cmd/protoc-gen-go-http/http.go index a697968b3..4886b8061 100644 --- a/cmd/protoc-gen-go-http/http.go +++ b/cmd/protoc-gen-go-http/http.go @@ -8,7 +8,6 @@ import ( "google.golang.org/protobuf/reflect/protoreflect" - "github.com/go-kratos/kratos/v2" "google.golang.org/genproto/googleapis/api/annotations" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/proto" @@ -32,7 +31,7 @@ func generateFile(gen *protogen.Plugin, file *protogen.File, omitempty bool) *pr g := gen.NewGeneratedFile(filename, file.GoImportPath) g.P("// Code generated by protoc-gen-go-http. DO NOT EDIT.") g.P("// versions:") - g.P(fmt.Sprintf("// protoc-gen-go-http %s", kratos.Release)) + g.P(fmt.Sprintf("// protoc-gen-go-http %s", release)) g.P() g.P("package ", file.GoPackageName) g.P()