1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 09:56:18 -05:00

LookPath overwrites protoc

This commit is contained in:
RPRX 2020-10-21 02:30:16 +00:00 committed by GitHub
parent 3fc985dd0e
commit 25c461e072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,11 @@ func main() {
}
protoc := "protoc" + EXE
if _, err := exec.LookPath(protoc); err != nil {
if path, err := exec.LookPath(protoc); err != nil {
fmt.Println("Make sure that you have `" + protoc + "` in your system or current path, please visit https://github.com/protocolbuffers/protobuf/releases")
os.Exit(1)
} else {
protoc = path
}
protoFilesMap := make(map[string][]string)