|
|
@@ -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)
|