Skip to content

Commit

Permalink
refactor: drop pkg/errors as a dependency
Browse files Browse the repository at this point in the history
Fixes argoproj#7402

Signed-off-by: william.vanhevelingen <[email protected]>
  • Loading branch information
blkperl committed Sep 27, 2024
1 parent 7f14810 commit 2af1b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions workflow/artifacts/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2af1b96

Please sign in to comment.