fix modPrefix (#596)

Co-authored-by: ryan <ryan.zhu@cardinfolink.com>
pull/651/head
Ryan 4 years ago committed by GitHub
parent 0f4fa0ad7c
commit 4160e34fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tool/kratos-gen-project/new.go

@ -26,7 +26,7 @@ func runNew(ctx *cli.Context) (err error) {
pwd, _ := os.Getwd()
p.path = filepath.Join(pwd, p.Name)
}
p.ModPrefix = modPath(p.path)
p.ModPrefix = strings.ReplaceAll(modPath(p.path), "\\", "/")
// creata a project
if err := create(); err != nil {
return err

Loading…
Cancel
Save