From d523a3fcf463af78af988d09a9bc00f6fef384c4 Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 16:22:50 +0000 Subject: [PATCH] use fmt and errors pkg from std lib for newPackageCmd Signed-off-by: James Sheppard --- cmd/helm/package.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/package.go b/cmd/helm/package.go index 822d3d56a..00c3abf5a 100644 --- a/cmd/helm/package.go +++ b/cmd/helm/package.go @@ -17,12 +17,12 @@ limitations under the License. package main import ( + "errors" "fmt" "io" "os" "path/filepath" - "github.com/pkg/errors" "github.com/spf13/cobra" "helm.sh/helm/v3/pkg/action" @@ -57,7 +57,7 @@ func newPackageCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { Long: packageDesc, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { - return errors.Errorf("need at least one argument, the path to the chart") + return fmt.Errorf("need at least one argument, the path to the chart") } if client.Sign { if client.Key == "" {