allow simple version increments

This commit is contained in:
Jeff Carr 2024-02-23 07:25:57 -06:00
parent 3c1d032101
commit 25681e4798
1 changed files with 10 additions and 2 deletions

View File

@ -138,12 +138,20 @@ func globalDisplayOptions(box *gui.Node) {
continue
}
newversion := repo.Status.GetNewVersionTag()
if newversion == targetv {
log.Info(repo.GoPath(), "targetv has been increased already to", targetv)
continue
}
if masterv != targetv {
log.Info(repo.GoPath(), "master and target differ already", masterv, targetv)
log.Info(repo.GoPath(), "master and target differ", masterv, targetv)
repo.Status.IncrementVersion()
newversion := repo.Status.GetNewVersionTag()
repo.Status.SetTargetVersion(newversion)
// already incremented
continue
}
repo.Status.IncrementVersion()
}
})
grid.NextRow()