summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-17 14:14:00 -0600
committerJeff Carr <[email protected]>2025-02-17 14:14:00 -0600
commit38a0f70c7861239386c1794073afb9b5ef111742 (patch)
treedfd29bdc979f6bb5d527c54ea24bc60458e589a1
parenteb57f644f744c7ff437259c13f2e87c63cb875ca (diff)
trim old codev0.23.52
-rw-r--r--doRelease.go15
-rw-r--r--main.go17
-rw-r--r--structs.go33
3 files changed, 1 insertions, 64 deletions
diff --git a/doRelease.go b/doRelease.go
index 89e1147..e2774d5 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -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()
}
diff --git a/main.go b/main.go
index 4510363..c4f011d 100644
--- a/main.go
+++ b/main.go
@@ -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()
}
diff --git a/structs.go b/structs.go
index 4930d55..733fc8d 100644
--- a/structs.go
+++ b/structs.go
@@ -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()
-}
-*/