diff --git a/go.mod b/go.mod index ab743ac5c19b..2f0bc30cd962 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,6 @@ require ( github.com/jcmturner/gokrb5/v8 v8.4.4 github.com/klauspost/pgzip v1.2.6 github.com/minio/minio-go/v7 v7.0.66 - github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.19.0 github.com/prometheus/common v0.48.0 github.com/robfig/cron/v3 v3.0.1 @@ -118,6 +117,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/ncruces/go-strftime v0.1.9 // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect + github.com/pkg/errors v0.9.1 // indirect github.com/prometheus/client_model v0.6.0 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/sagikazarmark/locafero v0.4.0 // indirect diff --git a/workflow/artifacts/azure/azure.go b/workflow/artifacts/azure/azure.go index c784717cab79..6395f436a4d3 100644 --- a/workflow/artifacts/azure/azure.go +++ b/workflow/artifacts/azure/azure.go @@ -20,7 +20,6 @@ import ( argoerrors "github.com/argoproj/argo-workflows/v3/errors" "github.com/argoproj/pkg/file" - "github.com/pkg/errors" wfv1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1" artifactscommon "github.com/argoproj/argo-workflows/v3/workflow/artifacts/common" @@ -90,7 +89,7 @@ func determineAccountName(containerUrl *url.URL) (string, error) { if strings.HasPrefix(hostname, "127.0.0.1") || strings.HasPrefix(hostname, "localhost") { parts := strings.Split(containerUrl.Path, "/") if len(parts) <= 2 { - return "", errors.Errorf("unable to determine storage account name from %s", containerUrl) + return "", fmt.Errorf("unable to determine storage account name from %s", containerUrl) } return parts[1], nil } else {