From 6022949f5c2bd53ae6e975ab4f981d46f4033030 Mon Sep 17 00:00:00 2001 From: MrJack <36191829+biagiopietro@users.noreply.github.com> Date: Tue, 21 Jul 2026 11:21:05 +0200 Subject: [PATCH] Fix golangci-lint Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com> --- pkg/cmd/plugin_update.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cmd/plugin_update.go b/pkg/cmd/plugin_update.go index d63d63213..0f3630afa 100644 --- a/pkg/cmd/plugin_update.go +++ b/pkg/cmd/plugin_update.go @@ -23,7 +23,6 @@ import ( "path/filepath" "strings" - "github.com/Masterminds/semver/v3" "github.com/spf13/cobra" "helm.sh/helm/v4/internal/plugin" @@ -116,7 +115,7 @@ func (o *pluginUpdateOptions) run(out io.Writer) error { for name, version := range o.plugins { if found := findPlugin(installed, name); found != nil { if err := updatePlugin(found, version); err != nil { - errorPlugins = append(errorPlugins, fmt.Errorf("failed to update plugin %s, got error (%v)", name, err)) + errorPlugins = append(errorPlugins, fmt.Errorf("failed to update plugin %s, got error (%w)", name, err)) } else { fmt.Fprintf(out, "Updated plugin: %s\n", name) }