summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 06:57:38 -0500
committerJeff Carr <[email protected]>2025-09-11 06:57:38 -0500
commitf2ec2e74ee2f90a210a6aee7058dffc6d86cc38b (patch)
tree56b98e3f72bfdfececfeae6e696244a10160f93e
parent74313bd8677d0062a4e025a529e08f6e9647ac6d (diff)
check mtimes here
-rw-r--r--goSrcScan.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/goSrcScan.go b/goSrcScan.go
index 8a07842..f80742f 100644
--- a/goSrcScan.go
+++ b/goSrcScan.go
@@ -12,12 +12,35 @@ import (
"go.wit.com/log"
)
+func reloadCheck(repo *gitpb.Repo) error {
+ if err := repo.ReloadCheck(); err != nil {
+ log.Info("changed:", repo.FullPath)
+ // configSave = true
+ return err
+ }
+ return nil
+}
+
func (f *Forge) ScanGoSrc() (bool, error) {
dirs, err := gitDirectoriesNew(f.goSrc)
if err != nil {
return false, err
}
+ stats := f.RillRepos(reloadCheck)
+ for _, stat := range stats {
+ if stat.Err == nil {
+ continue
+ }
+ f.SetConfigSave(true)
+ /*
+ dur := stat.End.Sub(stat.Start)
+ if dur > time.Second {
+ log.Infof("%s checkRemoteBranches() took a long time (%s) (err=%v)\n", path, shell.FormatDuration(dur), stat.Err)
+ }
+ */
+ }
+
var gopaths []string
for _, dir := range dirs {
// log.Info("forge.ScanGoSrc()", dir)