Browse Source

Merge pull request #131 from Loyalsoldier/protoc-dont-relay-on-GOPATH

Protoc: do NOT rely on GOPATH
pull/2714/head
RPRX 4 years ago committed by GitHub
parent
commit
5774addc14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      infra/vprotogen/main.go

6
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 (

Loading…
Cancel
Save