1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-12 19:00:43 +00:00

Merge pull request #138 from Loyalsoldier/fix-path

Fix: module path
This commit is contained in:
RPRX 2020-08-28 00:22:03 +00:00 committed by GitHub
commit c4d57c6405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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