From 6f52a79e2eb7bec730a51131cb8f2221c8d01498 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Fri, 28 Aug 2020 03:55:07 +0800 Subject: [PATCH] Fix: module path --- infra/vprotogen/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/vprotogen/main.go b/infra/vprotogen/main.go index 8e8c8f02c..dea42500f 100644 --- a/infra/vprotogen/main.go +++ b/infra/vprotogen/main.go @@ -81,7 +81,7 @@ func main() { fmt.Println(gmnErr) os.Exit(1) } - modulePath := filepath.Join(strings.Split(moduleName, string(os.PathSeparator))...) + modulePath := filepath.Join(strings.Split(moduleName, "/")...) pbGoFilesMap := make(map[string][]string) walkErr2 := filepath.Walk(modulePath, func(path string, info os.FileInfo, err error) error { @@ -148,7 +148,7 @@ func main() { } if err == nil { - err = os.RemoveAll(strings.Split(modulePath, string(os.PathSeparator))[0]) + err = os.RemoveAll(strings.Split(modulePath, "/")[0]) if err != nil { fmt.Println(err) }