diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 19:30:12 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 19:30:12 -0600 |
| commit | d1708d6a4bea44c9935e0b26e7d3e3a209c3b4b1 (patch) | |
| tree | 0313556372809a2c8c3ccd62bd122864946e6182 /main.go | |
| parent | 6f39827fb9f4b3ea2483998f20ac434d2bd721d9 (diff) | |
logic is betterv0.22.35
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 34 |
1 files changed, 2 insertions, 32 deletions
@@ -65,17 +65,6 @@ func main() { os.Exit(0) } - /* - // sanity check of things that might be around that mess - // up things later - // check to make sure we have a go.sum here - gosum := filepath.Join(homeDir, "go/src/go.wit.com/apps/guireleaser/go.sum") - if !shell.Exists(gosum) { - log.Info("go.sum must exist here") - os.Exit(0) - } - */ - log.Info("Creating the Release Window") // initialize the repo list window @@ -122,28 +111,9 @@ func main() { } } - // the repo from the command line - // var myrepo *repolist.RepoRow - - // find myself. the guireleaser directory is used as a working scratchpad - // for running go commands that can mess up the go.* files - loop = me.repos.View.ReposSortByName() - for loop.Scan() { - repo := loop.Repo() - if repo.GoPath() == "go.wit.com/apps/guireleaser" { - if me.release.guireleaser == nil { - me.release.guireleaser = repo - } - } - log.Info("repolist.ReposSortByName() found", repo.GoPath()) - /* - if repo.GoPath() == myargs.Repo { - myrepo = repo - } - */ - } + me.startRepo = me.forge.Repos.FindByGoPath("go.wit.com/apps/helloworld") - if me.release.guireleaser == nil { + if me.startRepo == nil { log.Info("Can not release if guireleaser was not found") os.Exit(0) } |
