diff --git a/pkg/pusher/ocipusher.go b/pkg/pusher/ocipusher.go index ea5e164c2..1e9b3b3ec 100644 --- a/pkg/pusher/ocipusher.go +++ b/pkg/pusher/ocipusher.go @@ -48,7 +48,7 @@ func (pusher *OCIPusher) push(chartRef, href string) error { stat, err := os.Stat(chartRef) if err != nil { if os.IsNotExist(err) { - return errors.Errorf("%s: no such file", chartRef) + return fmt.Errorf("%s: no such file", chartRef) } return err } diff --git a/pkg/pusher/pusher.go b/pkg/pusher/pusher.go index e325ce498..29d916bcc 100644 --- a/pkg/pusher/pusher.go +++ b/pkg/pusher/pusher.go @@ -17,7 +17,7 @@ limitations under the License. package pusher import ( - "github.com/pkg/errors" + "fmt" "helm.sh/helm/v3/pkg/cli" "helm.sh/helm/v3/pkg/registry" @@ -99,7 +99,7 @@ func (p Providers) ByScheme(scheme string) (Pusher, error) { return pp.New() } } - return nil, errors.Errorf("scheme %q not supported", scheme) + return nil, fmt.Errorf("scheme %q not supported", scheme) } var ociProvider = Provider{