Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Remove the last usage of obsolete package (#1102)
Browse files Browse the repository at this point in the history
The github.com/pkg/errors package is no more maintaned:
pkg/errors#245

Signed-off-by: Baiju Muthukadan <[email protected]>
  • Loading branch information
baijum authored Mar 23, 2022
1 parent f626241 commit ddc725f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.15.0
github.com/operator-framework/api v0.3.8
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.7.0
k8s.io/api v0.22.1
k8s.io/apiextensions-apiserver v0.22.1
Expand Down
4 changes: 1 addition & 3 deletions pkg/binding/annotationmapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"strings"

"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

"github.com/pkg/errors"
)

type UnstructuredResourceReader func(namespace string, name string) (*unstructured.Unstructured, error)
Expand Down Expand Up @@ -92,7 +90,7 @@ func (m *annotationBackedDefinitionBuilder) Build() (Definition, error) {

mod, err := newModel(m.value)
if err != nil {
return nil, errors.Wrapf(err, "could not create binding model for annotation key %s and value %s", m.name, m.value)
return nil, fmt.Errorf("could not create binding model for annotation key %s and value %s: %w", m.name, m.value, err)
}

switch {
Expand Down
3 changes: 2 additions & 1 deletion pkg/reconcile/pipeline/builder/pipeline_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package builder_test

import (
"errors"
"fmt"

"github.com/golang/mock/gomock"
"github.com/pkg/errors"
"github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1"
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline"
"github.com/redhat-developer/service-binding-operator/pkg/reconcile/pipeline/builder"
Expand Down
1 change: 0 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ github.com/operator-framework/api/pkg/lib/version
github.com/operator-framework/api/pkg/operators
github.com/operator-framework/api/pkg/operators/v1alpha1
# github.com/pkg/errors v0.9.1
## explicit
github.com/pkg/errors
# github.com/pmezard/go-difflib v1.0.0
github.com/pmezard/go-difflib/difflib
Expand Down

0 comments on commit ddc725f

Please sign in to comment.