diff --git a/init.go b/init.go index 121a481..a32a305 100644 --- a/init.go +++ b/init.go @@ -43,6 +43,8 @@ func Init() *Forge { f.rillUpdate(20, 10) if f.configSave { + // taking this out to debug Marshal() panic + // os.Exit(-1) f.ConfigSave() f.configSave = false } diff --git a/rill.go b/rill.go index 312970b..27af0f2 100644 --- a/rill.go +++ b/rill.go @@ -30,6 +30,7 @@ func (f *Forge) rillUpdate(pool1 int, pool2 int) (int, error) { // Concurrency = 10 err := rill.ForEach(rills, pool2, func(repo *gitpb.Repo) error { counter += 1 + // log.Info("rill.ForEach() gopath=", repo.GetGoPath()) return f.updateRepo(repo) }) @@ -38,7 +39,7 @@ func (f *Forge) rillUpdate(pool1 int, pool2 int) (int, error) { func (f *Forge) updateRepo(repo *gitpb.Repo) error { if !repo.IsValidDir() { - log.Printf("%10s %-50s", "bad git dir\n", repo.FullPath) + log.Printf("%10s %-50s gopath=%s\n", "git dir is missing:", repo.FullPath, repo.GetGoPath()) f.Repos.DeleteByFullPath(repo.FullPath) f.configSave = true return nil