1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 06:25:32 -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

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)