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 != "" {