fix: add warning when ignore repo flag

Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
pull/30852/head
Feng Cao 5 months ago
parent b4e06a11d2
commit 247bf7c2e0

@ -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, ".") {

Loading…
Cancel
Save