summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-17 14:34:40 -0500
committerJeff Carr <[email protected]>2025-10-17 14:34:40 -0500
commita9b01e71d3783f3ef6ed6ca99544aa568228f33f (patch)
treeb321078cd8c207dbb342d6505f9b445009a093ea
parent24e377ebbfec0d614af6b9eb6cff4b8006e473d4 (diff)
trying to debug 'nil' in the table
-rw-r--r--doBuild.go17
1 files 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