fix: sort tags in descending order

Update tagcmp dep also.
This commit is contained in:
2021-09-06 12:22:45 +02:00
parent 7ed37547a5
commit f4d8b45859
3 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ This is step 1 of upgrading a recipe. Step 2 is running "abra recipe sync
}
}
sort.Sort(tagcmp.ByTag(compatible))
sort.Sort(tagcmp.ByTagDesc(compatible))
if len(compatible) == 0 && semverLikeTag {
logrus.Info(fmt.Sprintf("No new versions available for '%s', '%s' is the latest", image, tag))