summaryrefslogtreecommitdiff
path: root/setTargetVersion.go
diff options
context:
space:
mode:
Diffstat (limited to 'setTargetVersion.go')
-rw-r--r--setTargetVersion.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/setTargetVersion.go b/setTargetVersion.go
index 017649f..24388a6 100644
--- a/setTargetVersion.go
+++ b/setTargetVersion.go
@@ -17,9 +17,11 @@ func setTargetVersion() {
// we could rename go.wit.com/widget to go.wit.com/newwidget and restart the versioning
// system, but that's rediculous and this servers to always remind me to never make this mistake again
var count int
- for i, repo := range me.repos.View.AllRepos() {
+ loop := me.repos.View.ReposSortByName()
+ for loop.Scan() {
+ repo := loop.Repo()
if repo == nil {
- log.Info("initial scan repo = nil", i)
+ log.Info("initial scan repo = nil")
continue
}
@@ -52,7 +54,9 @@ func setTargetVersion() {
// trys to figure out if the version needs to be incremented
func incrementTargetVersion() bool {
var count int
- for _, repo := range me.repos.View.AllRepos() {
+ loop := me.repos.View.ReposSortByName()
+ for loop.Scan() {
+ repo := loop.Repo()
if repo.ReadOnly() {
continue
}