From 6b5c94475db950a981523344029f0a7c620a2e32 Mon Sep 17 00:00:00 2001 From: Feng Cao <24779889+shfc@users.noreply.github.com> Date: Sun, 11 May 2025 02:46:50 +0930 Subject: [PATCH] fix: replace fmt warning with slog Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com> --- pkg/action/install.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index b2589c06f..7cc8dcd3a 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -21,6 +21,7 @@ import ( "context" "fmt" "io" + "log/slog" "net/url" "os" "path" @@ -762,7 +763,7 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( // 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) + slog.Warn("local chart found in current working directory. --repo flag ignored", "chart", name) } return abs, nil }