From 4cdbd6b57e2547fe7a443c9ae74424c65f5e6caa Mon Sep 17 00:00:00 2001 From: Luis Davim Date: Sun, 15 Jan 2023 16:59:52 +0000 Subject: [PATCH] fix: get chart version --- internal/app/helm_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/helm_helpers.go b/internal/app/helm_helpers.go index b72cc174..27e04332 100644 --- a/internal/app/helm_helpers.go +++ b/internal/app/helm_helpers.go @@ -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+"")