summaryrefslogtreecommitdiff
path: root/doRelease.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-06 20:28:31 -0600
committerJeff Carr <[email protected]>2024-11-06 20:28:31 -0600
commit2de5fd79554a3407f34e8b3adbb62da75fe7aa90 (patch)
tree67de4c1a85ab92a3d03aa6156971c28e570134f5 /doRelease.go
parent6933b29f59e711b2123bec26cda92fd2f8cbccb3 (diff)
fixing protobuf handlingv0.22.4
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'doRelease.go')
-rw-r--r--doRelease.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/doRelease.go b/doRelease.go
index 71baa57..9b69d3f 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -45,15 +45,19 @@ func doRelease() bool {
} else {
all = append(all, []string{"git", "add", "-f", "go.sum"})
}
- if ok, files, err := me.current.Status.IsProtobuf(); ok {
+ if ok, compiled, err := me.current.Status.IsProtobuf(); ok {
log.Info("\tIsProtobuf() == true")
if err != nil {
log.Info("\tERROR: There are protobuf files, but they are not compiled")
log.Info("\tERROR: can not continue")
+ os.Exit(-1)
}
log.Info("\tshould add the protobuf files here")
- log.Info("\tfiles found:", files)
- //all = append(all, []string{"git", "add", "-f", "go.sum"})
+ log.Info("\tcompiled files found:", compiled)
+ for _, s := range compiled {
+ log.Info("\tcompiled file found:", s)
+ all = append(all, []string{"git", "add", "-f", s})
+ }
} else {
log.Info("\tIsProtobuf() == false")
}