1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

Fix: module path

This commit is contained in:
loyalsoldier 2020-08-28 03:55:07 +08:00
parent d3ebba6901
commit 6f52a79e2e
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90

View File

@ -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)
}