From a9b01e71d3783f3ef6ed6ca99544aa568228f33f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Oct 2025 14:34:40 -0500 Subject: trying to debug 'nil' in the table --- doBuild.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/doBuild.go b/doBuild.go index a9101e6..16b08e6 100644 --- a/doBuild.go +++ b/doBuild.go @@ -63,7 +63,7 @@ func doInstall(all *gitpb.Repos) error { } found.Append(check) } - footer := me.forge.PrintForgedTable(found) + footer := found.PrintForgedTable() log.Info("Starting 'go install' on these repos:", footer) if argv.DryRun { @@ -82,12 +82,23 @@ func doInstall(all *gitpb.Repos) error { // log.Info("CRAP. INSTALL FAILED", config.FormatDuration(dur), s, stat.Err) msg := "go install FAILED " + s log.Info(msg) + // found := me.forge.Repos.FindByFullPath(s) found := me.forge.Repos.FindByNamespace(s) - failed.Clone(found) + if found == nil { + log.Info("found", found, "'"+s+"'") + // panic(msg) + } + // log.Info("found r.Namespace", found.Namespace) + // failed.Clone(found) + failed.Append(found) } os.Remove(filepath.Join(me.homedir, "go/bin/forged")) if failed.Len() > 0 { - footer := me.forge.PrintForgedTable(failed) + for r := range failed.IterAll() { + log.Info("r.Namespace", r.Namespace) + } + footer := failed.PrintForgedTable() + log.Info("TABLE WITH NULLS", footer) me.argv.BadExit("go install Failed for: "+footer, nil) } return nil -- cgit v1.2.3