diff options
Diffstat (limited to 'repo.common.go')
| -rw-r--r-- | repo.common.go | 7 |
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 { |
