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
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 <baiju.m.mail@gmail.com>
  • Loading branch information
baijum committed Mar 22, 2022
1 parent f626241 commit 5ff0e92
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 5ff0e92

Please sign in to comment.