Use canonical json-patch v4 import

The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).

Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt
2024-02-16 12:23:04 +01:00
parent 91ccf00ac8
commit bcf100f592
70 changed files with 208 additions and 102 deletions

View File

@@ -3,14 +3,15 @@ module sigs.k8s.io/kustomize/plugin/builtin/patchtransformer
go 1.20
require (
github.com/evanphx/json-patch v4.12.0+incompatible
github.com/stretchr/testify v1.8.1
gopkg.in/evanphx/json-patch.v4 v4.12.0
sigs.k8s.io/kustomize/api v0.14.0
sigs.k8s.io/kustomize/kyaml v0.16.0
sigs.k8s.io/yaml v1.4.0
)
require (
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect