From 4fbefc18f449290f3dc9c84b329d9da3f1057983 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Wed, 26 Aug 2020 17:37:51 +0800 Subject: [PATCH] Protoc: do NOT rely on GOPATH --- infra/vprotogen/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/vprotogen/main.go b/infra/vprotogen/main.go index e089f4e0e..7ceb0b429 100644 --- a/infra/vprotogen/main.go +++ b/infra/vprotogen/main.go @@ -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 (