From 6140abbcace154c91f3a26597e3202e7256c022c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 20 Apr 2022 12:31:21 +0200 Subject: [PATCH] fix: sync to latest before commits come in Follows from a4989e383402e5c1af0b9713a3ad4f50ab5581e5 --- cli/recipe/upgrade.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/recipe/upgrade.go b/cli/recipe/upgrade.go index f6fa259e..baeb0757 100644 --- a/cli/recipe/upgrade.go +++ b/cli/recipe/upgrade.go @@ -61,6 +61,10 @@ You may invoke this command in "wizard" mode and be prompted for input: Action: func(c *cli.Context) error { recipe := internal.ValidateRecipeWithPrompt(c, true) + if err := recipePkg.EnsureUpToDate(recipe.Name); err != nil { + logrus.Fatal(err) + } + bumpType := btoi(internal.Major)*4 + btoi(internal.Minor)*2 + btoi(internal.Patch) if bumpType != 0 { // a bitwise check if the number is a power of 2