Skip to content

Commit 9ea4001

Browse files
authored
Merge pull request #167 from nicholasSUSE/fix-make-validate-auto-bump
removing auto-bump during validation
2 parents 9eb4e28 + 6904634 commit 9ea4001

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

main.go

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/rancher/charts-build-scripts/pkg/util"
65
"io/ioutil"
76
"os"
87
"strings"
98

9+
"github.com/rancher/charts-build-scripts/pkg/util"
10+
1011
"github.com/go-git/go-git/v5"
1112
"github.com/rancher/charts-build-scripts/pkg/auto"
1213
"github.com/rancher/charts-build-scripts/pkg/charts"
@@ -479,21 +480,6 @@ func generateCharts(c *cli.Context) {
479480
if err := p.GenerateCharts(chartsScriptOptions.OmitBuildMetadataOnExport); err != nil {
480481
logrus.Fatal(err)
481482
}
482-
} else {
483-
repoRoot := getRepoRoot()
484-
485-
bump, err := auto.SetupBump(repoRoot, p.Name, "dev-v2.10", chartsScriptOptions)
486-
if err != nil {
487-
fmt.Printf("failed to initialize the chart bump: %s", err.Error())
488-
bump.Pkg.Clean()
489-
os.Exit(1)
490-
}
491-
492-
if err := bump.BumpChart(); err != nil {
493-
fmt.Printf("failed to bump the chart: %s", err.Error())
494-
bump.Pkg.Clean()
495-
os.Exit(1)
496-
}
497483
}
498484
}
499485
}

0 commit comments

Comments
 (0)