chore: update generalization warning message

Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
pull/30852/head
Feng Cao 4 months ago
parent eb5b6d5047
commit afefca8b2d

@ -751,10 +751,10 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) (
version := strings.TrimSpace(c.Version)
if _, err := os.Stat(name); err == nil {
// Issue #7862: Helm prioritizes local charts over --repo flag.
// Issue #7862: Helm prioritizes local charts over repository URL.
// This behavior is maintained for backwards compatibility but with a warning.
if c.RepoURL != "" {
slog.Warn("local chart found in current working directory. --repo flag ignored", "chart", name)
slog.Warn("local chart found in current working directory. repository url ignored", "chart", name, "repository", c.RepoURL)
}
abs, err := filepath.Abs(name)

Loading…
Cancel
Save