Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pack: support network name overrides in bundle git tags #10294

Merged
merged 7 commits into from
Feb 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
only override the correct version for bundle gen
  • Loading branch information
snissn committed Feb 16, 2023
commit ea03e1b6e70969e3c4bc7194bdf12b4b2aac7a45
3 changes: 2 additions & 1 deletion gen/bundle/bundle.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"os"
"strings"
"text/template"
Expand Down Expand Up @@ -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]
Expand Down