Skip to content

Commit

Permalink
fix: get chart version
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdavim committed Jan 15, 2023
1 parent c1dec13 commit 4cdbd6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/helm_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func getChartInfo(chartName, chartVersion string) (*ChartInfo, error) {
}

args := []string{"show", "chart", chartName}
if chartVersion != "latest" {
if chartVersion != "latest" && chartVersion != "" {
args = append(args, "--version", chartVersion)
}
cmd := helmCmd(args, "Getting latest non-local chart's version "+chartName+"-"+chartVersion+"")
Expand Down

0 comments on commit 4cdbd6b

Please sign in to comment.