From b5e4f1d685ce0a529dce648ff3a33b3bceb390cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D?= Date: Mon, 1 Jul 2019 13:39:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AA=E5=AE=9A=E4=B9=89module=20nam?= =?UTF-8?q?e=E6=97=B6=EF=BC=8C=E5=8F=AA=E4=BD=BF=E7=94=A8=20project=20name?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=20module=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/kratos/new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/kratos/new.go b/tool/kratos/new.go index 65378a10f..8f9325f5d 100644 --- a/tool/kratos/new.go +++ b/tool/kratos/new.go @@ -16,7 +16,7 @@ func runNew(ctx *cli.Context) error { p.Name = ctx.Args()[0] if p.ModuleName == "" { - p.ModuleName = path.Join(p.Owner, p.Name) + p.ModuleName = p.Name } if p.Path != "" {