summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-12 09:28:58 -0600
committerJeff Carr <[email protected]>2025-01-12 09:28:58 -0600
commitd38f5dda75fd4c4ba8adcaf4125f60a50fe3269b (patch)
treed7afe68d06123213b7935060a1124c78a475ea40 /main.go
parent10f75f87a66a9329fd665bd85099fe94c7beae79 (diff)
cleanups and help files
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)
}