mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-26 20:16:55 -05:00
Protoc: do NOT rely on GOPATH
This commit is contained in:
parent
e97b9b5f3c
commit
4fbefc18f4
@ -11,9 +11,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var protocMap = map[string]string{
|
var protocMap = map[string]string{
|
||||||
"windows": filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", ".dev", "protoc", "windows", "protoc.exe"),
|
"windows": filepath.Join(".dev", "protoc", "windows", "protoc.exe"),
|
||||||
"darwin": filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", ".dev", "protoc", "macos", "protoc"),
|
"darwin": filepath.Join(".dev", "protoc", "macos", "protoc"),
|
||||||
"linux": filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", ".dev", "protoc", "linux", "protoc"),
|
"linux": filepath.Join(".dev", "protoc", "linux", "protoc"),
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user