diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -145,10 +145,15 @@ func main() { // try to make foo.pb.go with protoc if it's not here // this is helpful because the protoc-gen-go lines // are also annoying to code by hand + checkCmd("protoc") + checkCmd("protoc-gen-go") pf.Pbfilename = pf.Filebase + ".pb.go" // try to create the foo.pb.go file using protoc if it is not there if !shell.Exists(pf.Pbfilename) { + checkCmd("protoc") + checkCmd("protoc-gen-go") + if err := pb.protocBuild(pf); err != nil { badExit(err) } |
