summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index d066507..41c8f77 100644
--- a/main.go
+++ b/main.go
@@ -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)
}