Skip to content

Commit 5d62be0

Browse files
authored
Use the module version of json-patch v5 (#321)
This matches other dependencies and means the non-modular will be dropped once other dependencies are bumped to versions that no longer pull it in. Signed-off-by: Stephen Kitt <[email protected]>
1 parent 9b2d4aa commit 5d62be0

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module open-cluster-management.io/addon-framework
33
go 1.24.0
44

55
require (
6-
github.com/evanphx/json-patch v5.9.11+incompatible
6+
github.com/evanphx/json-patch/v5 v5.9.11
77
github.com/fatih/structs v1.1.0
88
github.com/mochi-mqtt/server/v2 v2.6.5
99
github.com/onsi/ginkgo v1.16.5
@@ -52,7 +52,7 @@ require (
5252
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
5353
github.com/eclipse/paho.golang v0.21.0 // indirect
5454
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
55-
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
55+
github.com/evanphx/json-patch v5.9.11+incompatible // indirect
5656
github.com/felixge/httpsnoop v1.0.4 // indirect
5757
github.com/fsnotify/fsnotify v1.7.0 // indirect
5858
github.com/fxamacker/cbor/v2 v2.7.0 // indirect

pkg/utils/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"reflect"
1010
"strings"
1111

12-
jsonpatch "github.com/evanphx/json-patch"
12+
jsonpatch "github.com/evanphx/json-patch/v5"
1313
corev1 "k8s.io/api/core/v1"
1414
"k8s.io/apimachinery/pkg/api/equality"
1515
apierrors "k8s.io/apimachinery/pkg/api/errors"

test/integration/cloudevents/agent_deploy_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
87
"time"
98

10-
jsonpatch "github.com/evanphx/json-patch"
11-
"open-cluster-management.io/addon-framework/pkg/agent"
12-
"open-cluster-management.io/addon-framework/pkg/utils"
13-
9+
jsonpatch "github.com/evanphx/json-patch/v5"
1410
"github.com/onsi/ginkgo"
1511
"github.com/onsi/gomega"
1612
corev1 "k8s.io/api/core/v1"
@@ -22,12 +18,15 @@ import (
2218
"k8s.io/apimachinery/pkg/runtime"
2319
"k8s.io/apimachinery/pkg/types"
2420
"k8s.io/apimachinery/pkg/util/rand"
21+
"open-cluster-management.io/addon-framework/pkg/agent"
22+
"open-cluster-management.io/addon-framework/pkg/utils"
2523
addonapiv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
2624
workv1client "open-cluster-management.io/api/client/work/clientset/versioned/typed/work/v1"
2725
workv1informers "open-cluster-management.io/api/client/work/informers/externalversions/work/v1"
2826
workv1listers "open-cluster-management.io/api/client/work/listers/work/v1"
2927
clusterv1 "open-cluster-management.io/api/cluster/v1"
3028
workv1 "open-cluster-management.io/api/work/v1"
29+
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
3130
)
3231

3332
const (

test/integration/cloudevents/agent_hook_deploy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
87
"time"
98

10-
jsonpatch "github.com/evanphx/json-patch"
9+
jsonpatch "github.com/evanphx/json-patch/v5"
1110
"github.com/onsi/ginkgo"
1211
"github.com/onsi/gomega"
1312
corev1 "k8s.io/api/core/v1"
@@ -26,6 +25,7 @@ import (
2625
workv1listers "open-cluster-management.io/api/client/work/listers/work/v1"
2726
clusterv1 "open-cluster-management.io/api/cluster/v1"
2827
workv1 "open-cluster-management.io/api/work/v1"
28+
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
2929
)
3030

3131
const (

test/integration/cloudevents/agent_hosting_deploy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
87
"time"
98

10-
jsonpatch "github.com/evanphx/json-patch"
9+
jsonpatch "github.com/evanphx/json-patch/v5"
1110
"github.com/onsi/ginkgo"
1211
"github.com/onsi/gomega"
1312
corev1 "k8s.io/api/core/v1"
@@ -27,6 +26,7 @@ import (
2726
workv1listers "open-cluster-management.io/api/client/work/listers/work/v1"
2827
clusterv1 "open-cluster-management.io/api/cluster/v1"
2928
workv1 "open-cluster-management.io/api/work/v1"
29+
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
3030
)
3131

3232
const (

test/integration/cloudevents/agent_hosting_hook_deploy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
87
"time"
98

10-
jsonpatch "github.com/evanphx/json-patch"
9+
jsonpatch "github.com/evanphx/json-patch/v5"
1110
"github.com/onsi/ginkgo"
1211
"github.com/onsi/gomega"
1312
corev1 "k8s.io/api/core/v1"
@@ -27,6 +26,7 @@ import (
2726
workv1listers "open-cluster-management.io/api/client/work/listers/work/v1"
2827
clusterv1 "open-cluster-management.io/api/cluster/v1"
2928
workv1 "open-cluster-management.io/api/work/v1"
29+
"open-cluster-management.io/sdk-go/pkg/cloudevents/clients/work"
3030
)
3131

3232
const (

0 commit comments

Comments
 (0)