From bdeeb75973ed033120c3df4a08f6c6ace715b317 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 25 Jul 2023 15:06:50 +0200 Subject: [PATCH] fix: upgrade force logic parity with deploy force logic https://git.coopcloud.tech/coop-cloud/organising/issues/444#issue-3388 --- cli/app/upgrade.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/app/upgrade.go b/cli/app/upgrade.go index 197a9ab6..85fd8e8c 100644 --- a/cli/app/upgrade.go +++ b/cli/app/upgrade.go @@ -145,6 +145,11 @@ recipes. } } + if internal.Force && chosenUpgrade == "" { + logrus.Warnf("%s is already upgraded to latest but continuing (--force/--chaos)", app.Name) + chosenUpgrade = deployedVersion + } + // if release notes written after git tag published, read them before we // check out the tag and then they'll appear to be missing. this covers // when we obviously will forget to write release notes before publishing