Ver código fonte

Protoc: do NOT rely on GOPATH

loyalsoldier 5 anos atrás
pai
commit
4fbefc18f4
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      infra/vprotogen/main.go

+ 3 - 3
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 (