summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/findNext.go b/findNext.go
index a6c0ea6..34552f4 100644
--- a/findNext.go
+++ b/findNext.go
@@ -23,18 +23,18 @@ func findNext() bool {
for loop.Scan() {
repo := loop.Repo()
- check := me.forge.Repos.FindByGoPath(repo.GoPath())
+ check := me.forge.FindByGoPath(repo.GetGoPath())
if check == nil {
- log.Info("boo, you didn't git clone", repo.GoPath())
+ log.Info("boo, you didn't git clone", repo.GetGoPath())
return false
}
if check.GetTargetVersion() == check.GetCurrentBranchVersion() {
- // log.Info("findNext() no update needed", check.GoPath, check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion())
+ // log.Info("findNext() no update needed", check.GetGoPath, check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion())
continue
} else {
- log.Info("findNext() update needed", check.GoPath, check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion())
+ log.Info("findNext() update needed", check.GetGoPath(), check.GetTargetVersion(), "vs", check.GetCurrentBranchVersion())
}
- if me.forge.Config.IsReadOnly(check.GoPath) {
+ if me.forge.Config.IsReadOnly(check.GetGoPath()) {
log.Info("findNext() skipping readonly")
continue
}
@@ -86,7 +86,7 @@ func findNext() bool {
} else {
log.Info("go.mod is gone here")
}
- log.Info("findNext() got to the end. repo", repo.GoPath(), "did not work. trying to find a new one now")
+ log.Info("findNext() got to the end. repo", repo.GetGoPath(), "did not work. trying to find a new one now")
}
if findCounter == 0 {
log.Info("NOTHING TO UPDATE. findCounter =", findCounter)
@@ -104,10 +104,10 @@ func runGoClean(check *gitpb.Repo) bool {
check.GoDeps = nil
cmd := []string{"go-mod-clean", "--strict"}
- log.Info("Running", cmd, "in", check.GoPath)
+ log.Info("Running", cmd, "in", check.GetGoPath())
result := check.Run(cmd)
if result.Error != nil {
- log.Info(cmd, "failed with", result.Error, check.GoPath)
+ log.Info(cmd, "failed with", result.Error, check.GetGoPath())
log.Info("STDOUT")
log.Info(strings.Join(result.Stdout, "\n"))
log.Info("STDERR")
@@ -115,7 +115,7 @@ func runGoClean(check *gitpb.Repo) bool {
return false
}
if result.Exit != 0 {
- log.Info(cmd, "failed with", result.Exit, check.GoPath)
+ log.Info(cmd, "failed with", result.Exit, check.GetGoPath())
log.Info("STDOUT")
log.Info(strings.Join(result.Stdout, "\n"))
log.Info("STDERR")
@@ -137,7 +137,7 @@ func fixGodeps(check *gitpb.Repo) bool {
}
// skip primative ones
if ok, _ := check.IsPrimitive(); ok {
- log.Info("fixGoDeps() skipping primitive", check.GoPath)
+ log.Info("fixGoDeps() skipping primitive", check.GetGoPath())
return true
}
log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen())
@@ -145,13 +145,13 @@ func fixGodeps(check *gitpb.Repo) bool {
for deps.Scan() {
depRepo := deps.Next()
// log.Info("found dep", depRepo.GetGoPath())
- if me.forge.Config.IsReadOnly(depRepo.GoPath) {
+ if me.forge.Config.IsReadOnly(depRepo.GetGoPath()) {
log.Info("IsReadOnly = true", depRepo.GetGoPath())
continue
} else {
// log.Info("IsReadOnly = false", depRepo.GetGoPath())
}
- found := me.forge.Repos.FindByGoPath(depRepo.GetGoPath())
+ found := me.forge.FindByGoPath(depRepo.GetGoPath())
if found == nil {
log.Info("not found:", depRepo.GetGoPath())
continue
@@ -167,13 +167,13 @@ func fixGodeps(check *gitpb.Repo) bool {
}
func setCurrentRepo(repo *repolist.RepoRow, s string, note string) bool {
- check := me.forge.Repos.FindByGoPath(repo.GoPath())
+ check := me.forge.FindByGoPath(repo.GetGoPath())
if check == nil {
- log.Info("boo, you didn't git clone", repo.GoPath())
+ log.Info("boo, you didn't git clone", repo.GetGoPath())
return false
}
- me.release.repo.SetText(check.GoPath)
+ me.release.repo.SetText(check.GetGoPath())
me.release.status.SetText(s)
me.release.notes.SetText(note)
me.current = repo