summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 19:30:12 -0600
committerJeff Carr <[email protected]>2024-12-13 19:30:12 -0600
commitd1708d6a4bea44c9935e0b26e7d3e3a209c3b4b1 (patch)
tree0313556372809a2c8c3ccd62bd122864946e6182 /main.go
parent6f39827fb9f4b3ea2483998f20ac434d2bd721d9 (diff)
logic is betterv0.22.35
Diffstat (limited to 'main.go')
-rw-r--r--main.go34
1 files changed, 2 insertions, 32 deletions
diff --git a/main.go b/main.go
index 126f5f6..6b6a74e 100644
--- a/main.go
+++ b/main.go
@@ -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)
}