diff options
Diffstat (limited to 'doPublish.go')
| -rw-r--r-- | doPublish.go | 53 |
1 files changed, 7 insertions, 46 deletions
diff --git a/doPublish.go b/doPublish.go index b474436..d4a2122 100644 --- a/doPublish.go +++ b/doPublish.go @@ -43,6 +43,11 @@ func rillRestore(repo *gitpb.Repo) error { return nil } +// fuck you prior self. this code is garbage +// nevermind, I knew that when I wrote it. +// I'm back now to fix it. Thank you for making it work until I got back here +// shame you aren't as smart as fabrice. you might have done this on the first go around +// fine though, you have different talents. Also, Mariam loves you. func doPublish() error { initForge() env.PrintTable() @@ -53,8 +58,8 @@ func doPublish() error { footer := restored.PrintPublishNewTB() fmt.Printf("restored.len(%d) with errors: %s\n", restored.Len(), footer) - // publish := me.forge.RunOnReposSlow(me.forge.Repos, rePrepareReleaseNew) // doesn't use Rill() - publish := me.forge.RunOnRepos(me.forge.Repos, rePrepareReleaseNew) + publish := me.forge.RunOnReposSlow(me.forge.Repos, rePrepareReleaseNew) // doesn't use Rill() + // publish := me.forge.RunOnRepos(me.forge.Repos, rePrepareReleaseNew) if publish == nil { return errors.New("nothing to publish. you actually have to write code first") } @@ -114,50 +119,6 @@ func doPublish() error { if !env.True("--doit") { return errors.New("run with --doit to actually try to publish") } - // me.forge.RillFuncError(rillPurge) - - /* - saferepo := me.forge.Repos.FindByNamespace("go.wit.com/lib/xgb") // safe to run things here - if saferepo == nil { - return log.Errorf("need a safe place to run GO commands from") - } - os.Chdir(saferepo.FullPath) - - if os.Getenv("GUIRELEASE_REASON") == "" { - log.Info("$ENV[GUIRELEASE_REASON] was not set") - reason := fhelp.InputFromUser("set tag message:") - if reason == "" { - argvpb.BadExit("merge failed", fmt.Errorf("GUIRELEASE_REASON was blank")) - } - os.Setenv("GUIRELEASE_REASON", reason) - } - - var cmd []string - - cmd = []string{"forge", "merge", "--all"} - if _, err := shell.RunRealtimeError(cmd); err != nil { - argvpb.BadExit("merge failed", nil) - } - - cmd = []string{"forge", "merge", "check"} - if _, err := shell.RunRealtimeError(cmd); err != nil { - if _, err := shell.RunVerbose(cmd); err != nil { - argvpb.BadExit("merge failed", nil) - } - } - // todo: os.Stat() file - time.Sleep(time.Second) - me.forge.Repos.Load() - - if err := doInstall(me.forge.Repos); err != nil { - log.Info("doInstall() failed", err) - argvpb.BadExit("merge failed", nil) - } - - if os.Getenv("GUIRELEASE_REASON") == "" { - os.Setenv("GUIRELEASE_REASON", "automated") - } - */ argvpb.GoodExit("PUBLISH WORKED") return nil |
