From 7671c9f09e37e6665e3ad63f0811cca2e79d478b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Oct 2025 15:10:03 -0500 Subject: autogenpb Append() and Clone() now don't allow nil --- doBuild.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'doBuild.go') diff --git a/doBuild.go b/doBuild.go index 16b08e6..0348609 100644 --- a/doBuild.go +++ b/doBuild.go @@ -82,25 +82,22 @@ 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) + found := me.forge.Repos.FindByFullPath(s) if found == nil { log.Info("found", found, "'"+s+"'") - // panic(msg) + panic("wrong namespace logic. couldn't find repo from stats") } - // 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 { - 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) + // if failed.Len() > 0 { + 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