diff options
Diffstat (limited to 'doBuild.go')
| -rw-r--r-- | doBuild.go | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -9,7 +9,6 @@ import ( "path/filepath" "strings" - "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -17,10 +16,10 @@ import ( func doBuild() error { if argv.Build.Install != nil { if err := doInstall(); err != nil { - log.Info("doInstall() failed", err) - badExit(err) + // log.Info("doInstall() failed", err) + me.sh.BadExit("doInstall() failed", err) } - okExit("EVERYTHING BUILT!") + me.sh.GoodExit("EVERYTHING BUILT!") } if argv.Build.MacBuild != nil { @@ -30,7 +29,7 @@ func doBuild() error { if argv.Build.Debian != nil { doBuildDeb() - okExit("") + me.sh.GoodExit("") } return nil @@ -58,7 +57,7 @@ func doInstall() error { me.forge.PrintForgedTable(found) if argv.DryRun { - okExit("") + me.sh.GoodExit("") } me.forge.ConfigRill(16, 16) @@ -67,9 +66,9 @@ func doInstall() error { if stat.Err == nil { continue } - dur := stat.End.Sub(stat.Start) - log.Info("CRAP. INSTALL FAILED", shell.FormatDuration(dur), s, stat.Err) - badExit(stat.Err) + // log.Info("CRAP. INSTALL FAILED", config.FormatDuration(dur), s, stat.Err) + msg := "go install FAILED " + s + me.sh.BadExit(msg, stat.Err) } os.Remove(filepath.Join(me.homedir, "go/bin/forged")) return nil |
