bad logic on 'first' tag

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-09 04:55:08 -06:00
parent 49724b16e8
commit 35e03959ab
1 changed files with 6 additions and 0 deletions

View File

@ -203,6 +203,12 @@ func (rtags *repoTags) PruneSmart() {
isVersion := regexp.MustCompile("v[0-9]+.[0-9]+.[0-9]+").MatchString
if isVersion(t.tag.String()) {
if first {
log.Info("keep first tag", i, t.tag.String())
t.Hide()
first = false
continue
}
log.Info("valid tag", i, t.tag.String())
t.Hide()
continue