trim old code

This commit is contained in:
Jeff Carr 2025-02-17 14:14:00 -06:00
parent eb57f644f7
commit 38a0f70c78
3 changed files with 1 additions and 64 deletions

View File

@ -176,13 +176,6 @@ func doRelease() error {
retag = append(retag, []string{"git", "tag", "-m", me.releaseReasonS, me.release.version.String()})
retag = append(retag, []string{"git", "push", "origin", me.release.version.String()})
if err := check.AutogenRestore(cname); err != nil {
log.Info("AutogenRestore() failed", err)
} else {
cmd := []string{"git", "push", "origin", "refs/notes/*:refs/notes/*"}
check.Run(cmd)
}
if !me.current.RunAll(retag) {
log.Info("retag failed")
findOk = false
@ -190,14 +183,6 @@ func doRelease() error {
}
log.Info("EVERYTHING OK. RERELEASED", me.current.GetGoPath())
// save autogen files under the tag version (for example: "v0.2.3")
newtag := me.release.version.String()
if err := check.AutogenSave(autogen, newtag, true); err != nil {
log.Info("AutogenSave() error", err)
msg := fmt.Sprint("AutogenSave() error", err)
badExit(errors.New(msg))
}
return skipToNext()
}

17
main.go
View File

@ -90,10 +90,6 @@ func main() {
log.Info("Creating the Release Window")
// initialize the repo list window
// which should be all the git repositories in ~/go/src & the .config file
// me.repos = makeRepoView()
// the left side of the window options
globalDisplayOptions(me.mainBox)
@ -104,10 +100,6 @@ func main() {
me.release.box.Disable()
me.Disable()
// scan in the State of all the repos
// TODO: should not really be necessary directly after init()
// me.repos.View.ScanRepositoriesOld()
// todo: add this to forgepb
me.startRepo = me.forge.FindWorkingDirRepo()
@ -134,15 +126,6 @@ func main() {
me.Enable()
me.release.box.Enable()
/*
// intermittently scans the status indefinitly
me.repos.View.Watchdog(func() {
log.Info("In main()")
log.Sleep(10)
// processing is done. update the repo summary box
// me.summary.Update()
})
*/
// start the http server for polling status
startHTTP()
}

View File

@ -32,32 +32,7 @@ type autoType struct {
mainWindow *gadgets.BasicWindow
mainBox *gui.Node
// our view of the repositories
// repos *repoWindow
// your customized repo preferences and settings
forge *forgepb.Forge
// #### autotypist Global Build Options
// what to change all the branches to
// so, as a developer, you can move all the repos
// to the 'devel' branch and then test a devel branch build
// then switch back to your 'username' branch and do a build there
// toMoveToBranch string
// displays the preferred names used for the repo tree state
// mainBranch *gadgets.BasicCombobox
// develBranch *gadgets.BasicCombobox
// userBranch *gadgets.BasicCombobox
// this button will regenerate everyones go.mod & go.sum
rerunGoMod *gui.Node
// if checked, will stop trying to os.Exec() things after failure
stopOnErrors *gui.Node
// button to attempt to autorebuild
autoRebuildButton *gui.Node
forge *forgepb.Forge // your customized repo preferences and settings
// checkbox for --dry-run
autoDryRun *gui.Node
@ -83,9 +58,3 @@ type autoType struct {
// show the time it took to do a scan
duration *gui.Node
}
/*
func (my *autoType) GoSrcPath() string {
return my.goSrcPwd.String()
}
*/