summaryrefslogtreecommitdiff
path: root/doBuild.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 20:18:37 -0500
committerJeff Carr <[email protected]>2025-10-13 20:18:37 -0500
commit7192168bcba1eb80b0d218835774fa48caeb7ed6 (patch)
tree81db8b00b0096a05d03faa09ae7b7e5c16d700e0 /doBuild.go
parentdb0bf5dde1672a3a0fb73155f8e40ad5dbbbcbe6 (diff)
list out build failure table (maybe)
Diffstat (limited to 'doBuild.go')
-rw-r--r--doBuild.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/doBuild.go b/doBuild.go
index 4e7bae6..0a920d8 100644
--- a/doBuild.go
+++ b/doBuild.go
@@ -21,6 +21,9 @@ func doBuild() (string, error) {
// log.Info("doInstall() failed", err)
me.sh.BadExit("doInstall() failed", err)
}
+ if argv.DryRun {
+ me.sh.GoodExit("Nothing built --dry-run")
+ }
me.sh.GoodExit("EVERYTHING BUILT!")
}
@@ -71,15 +74,22 @@ func doInstall(all *gitpb.Repos) error {
os.Setenv("GO111MODULE", "off")
stats := me.forge.RunOnRepos(found, doInstallRepo)
os.Unsetenv("GO111MODULE")
+ failed := gitpb.NewRepos()
for s, stat := range stats {
if stat.Err == nil {
continue
}
// log.Info("CRAP. INSTALL FAILED", config.FormatDuration(dur), s, stat.Err)
msg := "go install FAILED " + s
- me.sh.BadExit(msg, stat.Err)
+ log.Info(msg)
+ found := me.forge.Repos.FindByNamespace(s)
+ failed.Clone(found)
}
os.Remove(filepath.Join(me.homedir, "go/bin/forged"))
+ if failed.Len() > 0 {
+ footer := me.forge.PrintForgedTable(failed)
+ me.sh.BadExit("go install Failed for: "+footer, nil)
+ }
return nil
}