diff --git a/cmd/krel/cmd/ci_build.go b/cmd/krel/cmd/ci_build.go index 06bc82ed96a..069c7d0e772 100644 --- a/cmd/krel/cmd/ci_build.go +++ b/cmd/krel/cmd/ci_build.go @@ -19,7 +19,6 @@ package cmd import ( "fmt" - "github.com/pkg/errors" "github.com/spf13/cobra" "k8s.io/release/pkg/build" @@ -50,7 +49,7 @@ var ciBuildCmd = &cobra.Command{ SilenceErrors: true, RunE: func(cmd *cobra.Command, args []string) error { if err := runCIBuild(ciBuildOpts); err != nil { - return errors.Wrap(err, "failed to run") + return fmt.Errorf("failed to run: %w", err) } return nil diff --git a/go.mod b/go.mod index c9406a10951..b8a777fefea 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,6 @@ require ( github.com/mitchellh/mapstructure v1.5.0 github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 github.com/olekukonko/tablewriter v0.0.5 - github.com/pkg/errors v0.9.1 github.com/psampaz/go-mod-outdated v0.8.0 github.com/saschagrunert/go-modiff v1.3.0 github.com/sendgrid/rest v2.6.9+incompatible @@ -209,6 +208,7 @@ require ( github.com/package-url/packageurl-go v0.1.1-0.20220203205134-d70459300c8a // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.1 // indirect + github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/client_golang v1.12.1 // indirect