From 0b2229c3eb0488f092d8b6829d08d9b465e1ab09 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Sat, 8 Jun 2024 11:04:44 +0300 Subject: [PATCH] fix(LocateChart): Fixed install.LocateChart func to support remote chart while local folder with the same name exists Signed-off-by: Suleiman Dibirov --- pkg/action/install.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index 93216130a..e6fa115d6 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -755,7 +755,10 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( return "", err } } - return abs, nil + + if isChartDir, _ := chartutil.IsChartDir(abs); isChartDir { + return abs, nil + } } if filepath.IsAbs(name) || strings.HasPrefix(name, ".") { return name, errors.Errorf("path %q not found", name)