Protoc: do NOT rely on GOPATH

pull/2714/head
loyalsoldier 2020-08-26 17:37:51 +08:00
parent e97b9b5f3c
commit 4fbefc18f4
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ import (
)
var protocMap = map[string]string{
"windows": filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", ".dev", "protoc", "windows", "protoc.exe"),
"darwin": filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", ".dev", "protoc", "macos", "protoc"),
"linux": filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", ".dev", "protoc", "linux", "protoc"),
"windows": filepath.Join(".dev", "protoc", "windows", "protoc.exe"),
"darwin": filepath.Join(".dev", "protoc", "macos", "protoc"),
"linux": filepath.Join(".dev", "protoc", "linux", "protoc"),
}
var (