diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 14:34:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 14:34:40 -0500 |
| commit | a9b01e71d3783f3ef6ed6ca99544aa568228f33f (patch) | |
| tree | b321078cd8c207dbb342d6505f9b445009a093ea | |
| parent | 24e377ebbfec0d614af6b9eb6cff4b8006e473d4 (diff) | |
trying to debug 'nil' in the table
| -rw-r--r-- | doBuild.go | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 |
