summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-20 16:11:00 -0600
committerJeff Carr <[email protected]>2024-02-20 16:11:00 -0600
commit8cc86a91cb6408fe1380b904c86162e931936a4f (patch)
tree9e7a5a1b724786a254f6f4249b5d7b3ab8017f60 /main.go
parente927975dc890216c7172f711222cfdf283c0dd1c (diff)
guirelease finally does a single package again
after a week of recoding, fixing and improving the original code, it was able to find a primitive package (toolkits/debian) and update it correctly
Diffstat (limited to 'main.go')
-rw-r--r--main.go28
1 files changed, 22 insertions, 6 deletions
diff --git a/main.go b/main.go
index 5f0068a..675127f 100644
--- a/main.go
+++ b/main.go
@@ -74,9 +74,6 @@ func main() {
// which should be all the git repositories in ~/go/src & the .config file
me.repos = makeRepoView()
- // register a Show/Hide function for the repo list table
- me.repos.View.RegisterHideFunction(showHideRepos)
-
// the left side of the window options
globalDisplayOptions(me.mainBox)
@@ -89,17 +86,36 @@ func main() {
// tool to release the code for this app, the gui and the gui toolkits
// and sometimes they lie, don't display stuff, don't even disable things
// so I can't trust even what I see. It's complicated right now still.
- release.openrepo.Disable()
+ me.release.openrepo.Disable()
+ me.Disable()
log.Sleep(5)
// parse config file and scan for .git repos
me.repos.initRepoList()
+ setTargetVersion()
+
+ // register a Show/Hide function for the repo list table
+ me.repos.View.RegisterHideFunction(showHideRepos)
- // reads in the State of all the repos
+ // scan in the State of all the repos
// TODO: should not really be necessary directly after init()
- // me.repos.View.ScanRepositories()
+ me.repos.View.ScanRepositories()
+ // find myself. the guireleaser directory is used as a working scratchpad
+ // for running go commands that can mess up the go.* files
+ for _, repo := range me.repos.View.AllRepos() {
+ if repo.GoPath() == "go.wit.com/apps/guireleaser" {
+ if me.release.guireleaser == nil {
+ me.release.guireleaser = repo
+ }
+ }
+ }
+
+ if me.release.guireleaser == nil {
+ log.Info("Can not release if guireleaser was not found")
+ os.Exit(0)
+ }
me.Enable()
// intermittently scans the status indefinitly