summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-05 01:44:24 -0600
committerJeff Carr <[email protected]>2024-11-05 01:44:24 -0600
commita72c700f6336da2dd33d5559c8451ccab97172df (patch)
tree8de17ebb874f1e02ebddecbb73dfb8544b645426 /main.go
parentd3cc4d6a154680e2ff1463ff2d1d3687fef82c1a (diff)
got a temp window to work as a workaround
Diffstat (limited to 'main.go')
-rw-r--r--main.go60
1 files changed, 1 insertions, 59 deletions
diff --git a/main.go b/main.go
index 4bd08ef..e332162 100644
--- a/main.go
+++ b/main.go
@@ -91,7 +91,7 @@ func main() {
// parse config file and scan for .git repos
me.repos.initRepoList()
- setTargetVersion()
+ // setTargetVersion()
// register a Show/Hide function for the repo list table
me.repos.View.RegisterHideFunction(hideFunction)
@@ -118,64 +118,6 @@ func main() {
*/
}
- /*
- if myargs.Repo != "" {
- me.mainWindow.Hide()
- if myrepo == nil {
- log.Info("could not find", myargs.Repo)
- os.Exit(0)
- }
- log.Info("only going to do repo:", myrepo.GoPath())
- tmp := myargs.Reason
- if tmp == "" {
- tmp = os.Getenv("GUIRELEASE_REASON")
- }
- if tmp == "" {
- tmp = "made by guireleaser"
- }
-
- // increment all the versions
- for _, repo := range me.repos.View.AllRepos() {
- if whitelist(repo.GoPath()) {
- continue
- }
- if repo.ReadOnly() {
- continue
- }
- lasttag := repo.Status.LastTag()
- if repo.Status.GetCurrentVersion() == lasttag {
- log.Info("skipping unchanged repo", repo.Status.GoPath())
- repo.Status.SetTargetVersion(lasttag)
- continue
- }
- repo.Status.IncrementRevisionVersion("go-clone")
- }
- // rescan all the repos
- me.repos.View.ScanRepositories()
-
- myrepo.Status.MakeRedomod()
- myrepo.Status.IncrementRevisionVersion(tmp)
- _, err := me.repos.View.CheckValidGoSum(myrepo)
- if err != nil {
- log.Info("go mod tidy not ok", err)
- return
- }
- if !checkValidGoSum(myrepo) {
- log.Info("go.sum checks failed")
- os.Exit(0)
- }
- setCurrentRepo(myrepo, "should be good to release", "pretty sure")
- log.Info("DO THE RELEASE HERE")
- log.Info("going to release", myrepo.GoPath(), "as version", myrepo.Status.GetTargetVersion())
- if myargs.DryRun {
- log.Info("--dry-run == true")
- } else {
- doRelease()
- }
- os.Exit(0)
- }
- */
-
if me.release.guireleaser == nil {
log.Info("Can not release if guireleaser was not found")
os.Exit(0)