summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-06 21:51:09 -0500
committerJeff Carr <[email protected]>2025-09-06 21:51:09 -0500
commitda649abcebbcc71197d2eb4108535cead12c7004 (patch)
tree4aa088b4c99b4f633c899aa92ec4ad57b08e30bc /config.go
parent722ebeeef8b2f33e444b6e8dd6ab1476b0be315b (diff)
sometimes, just care about the sunv0.0.118
Diffstat (limited to 'config.go')
-rw-r--r--config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.go b/config.go
index 2691cd8..702daa9 100644
--- a/config.go
+++ b/config.go
@@ -35,14 +35,12 @@ func (all *Repos) ConfigSave() error {
data, err = all.Marshal()
if err == nil {
// validate & sanitize strings worked
- log.Info("gitpb.ConfigSave() repos.Marshal() worked len", len(all.Repos), "repos")
configWrite("repos.pb", data)
return nil
}
}
return err
}
- log.Info("gitpb.ConfigSave() repos.Marshal() worked len", len(all.Repos), "repos")
configWrite("repos.pb", data)
return nil
}
@@ -151,6 +149,7 @@ func loadFile(fullname string) ([]byte, error) {
func configWrite(filename string, data []byte) error {
fullname := filepath.Join(os.Getenv("FORGE_GOSRC"), filename)
+ log.Infof("%s your repos have changed state. cached state. (%d) bytes\n", fullname, len(data))
cfgfile, err := os.OpenFile(fullname, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
defer cfgfile.Close()
if err != nil {