From 792f4374bbe0cccba9d462cec57e1976845e0a66 Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 29 Sep 2019 10:07:41 +0800 Subject: [PATCH] fix new path --- tool/kratos/new.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/kratos/new.go b/tool/kratos/new.go index cd7f2a5ca..2b2b08ad7 100644 --- a/tool/kratos/new.go +++ b/tool/kratos/new.go @@ -5,6 +5,7 @@ import ( "fmt" "os" "path" + "path/filepath" "github.com/urfave/cli" ) @@ -25,6 +26,7 @@ func runNew(ctx *cli.Context) error { pwd, _ := os.Getwd() p.Path = path.Join(pwd, p.Name) } + p.Path = filepath.FromSlash(p.Path) // Create a project if err := create(); err != nil { return err