diff --git a/pkg/action/install.go b/pkg/action/install.go index 7bdfc2ab5..b2589c06f 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -759,6 +759,11 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( return "", err } } + // Issue #7862: Helm prioritizes local charts over --repo flag. + // This behavior is maintained for backwards compatibility but with a warning. + if c.RepoURL != "" { + fmt.Printf("WARNING: local chart %s found in current working directory. --repo flag will be ignored\n", name) + } return abs, nil } if filepath.IsAbs(name) || strings.HasPrefix(name, ".") {