Skip to content

Commit 6b5c944

Browse files
committed
fix: replace fmt warning with slog
Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
1 parent 247bf7c commit 6b5c944

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎pkg/action/install.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"context"
2222
"fmt"
2323
"io"
24+
"log/slog"
2425
"net/url"
2526
"os"
2627
"path"
@@ -762,7 +763,7 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) (
762763
// Issue #7862: Helm prioritizes local charts over --repo flag.
763764
// This behavior is maintained for backwards compatibility but with a warning.
764765
if c.RepoURL != "" {
765-
fmt.Printf("WARNING: local chart %s found in current working directory. --repo flag will be ignored\n", name)
766+
slog.Warn("local chart found in current working directory. --repo flag ignored", "chart", name)
766767
}
767768
return abs, nil
768769
}

0 commit comments

Comments
 (0)