Przeglądaj źródła

fix:multipule flag client go package name (#3104)

Co-authored-by: lidengfu <lidengfu@excean.com>
李登富 2 lat temu
rodzic
commit
ffacae89eb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/goctl/rpc/generator/gencall.go

+ 1 - 1
tools/goctl/rpc/generator/gencall.go

@@ -108,7 +108,7 @@ func (g *Generator) genCallGroup(ctx DirContext, proto parser.Proto, cfg *conf.C
 			"name":           callFilename,
 			"alias":          strings.Join(aliasKeys, pathx.NL),
 			"head":           head,
-			"filePackage":    dir.Base,
+			"filePackage":    childDir,
 			"pbPackage":      pbPackage,
 			"protoGoPackage": protoGoPackage,
 			"serviceName":    serviceName,