refactor!: recipe upgrade: use new tagcmp version

This commit is contained in:
2021-10-11 16:39:25 +02:00
committed by Gitea
parent 44dc0edf7b
commit 6db1fdcfba
3 changed files with 5 additions and 3 deletions

View File

@ -120,11 +120,11 @@ is up to the end-user to decide.
var upgradeTag string
if bumpType != 0 {
for _, upTag := range compatible {
upElement, err := tag.UpgradeElement(upTag)
upElement, err := tag.UpgradeDelta(upTag)
if err != nil {
return err
}
delta := tagcmp.UpgradeType(upElement)
delta := upElement.UpgradeType()
if delta <= bumpType {
upgradeTag = upTag.String()
break