summaryrefslogtreecommitdiff
path: root/repo.common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 06:46:11 -0500
committerJeff Carr <[email protected]>2025-10-13 06:46:11 -0500
commita86567a4eba9e3ca86cbfc1693a92279ade0c2d5 (patch)
tree84e59f5db013cce8f460cdca4340c7193a5157ad /repo.common.go
parentfdfc5a424ec5cc2349fefc759b41649ae1897992 (diff)
add repospb.SaveSafe()
Diffstat (limited to 'repo.common.go')
-rw-r--r--repo.common.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/repo.common.go b/repo.common.go
index bf80f81..f26475a 100644
--- a/repo.common.go
+++ b/repo.common.go
@@ -7,9 +7,16 @@ import (
"sort"
"strings"
+ "go.wit.com/lib/config"
"go.wit.com/log"
)
+func (pb *Repos) SaveSafe() error {
+ err := config.SavePB(pb, pb.Filename)
+ log.Info(pb.Filename, "Saved with len", pb.Len(), "with err", err)
+ return err
+}
+
// does this repo build a binary?
func (r *Repo) IsBinary() bool {
if r.GoInfo != nil {