From ea03e1b6e70969e3c4bc7194bdf12b4b2aac7a45 Mon Sep 17 00:00:00 2001 From: mike seiler Date: Thu, 16 Feb 2023 13:10:25 -0700 Subject: [PATCH] only override the correct version for bundle gen --- gen/bundle/bundle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/bundle/bundle.go b/gen/bundle/bundle.go index e369fd3dc..908ef57e8 100644 --- a/gen/bundle/bundle.go +++ b/gen/bundle/bundle.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "os" "strings" "text/template" @@ -56,7 +57,7 @@ func main() { if len(os.Args) > 1 { for _, m := range metadata { override, ok := overrides[m.Network] - if ok { + if ok && strings.HasPrefix(override, fmt.Sprintf("v%d", m.Version)) { m.BundleGitTag = override } else { m.BundleGitTag = os.Args[1]