From ea390ff7daece0111b010ecad57ac2527f9e9c8c Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Wed, 21 Jun 2023 21:53:55 -0700 Subject: [PATCH] Update module github.com/imdario/mergo to v1 Signed-off-by: Nic Cope --- apis/common/v1/merge.go | 2 +- apis/common/v1/merge_test.go | 2 +- go.mod | 3 ++- go.sum | 2 ++ pkg/fieldpath/merge.go | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apis/common/v1/merge.go b/apis/common/v1/merge.go index efed85db7..5b8d2d9a2 100644 --- a/apis/common/v1/merge.go +++ b/apis/common/v1/merge.go @@ -17,7 +17,7 @@ limitations under the License. package v1 import ( - "github.com/imdario/mergo" + "dario.cat/mergo" ) // MergeOptions Specifies merge options on a field path diff --git a/apis/common/v1/merge_test.go b/apis/common/v1/merge_test.go index bae564ffc..616e32519 100644 --- a/apis/common/v1/merge_test.go +++ b/apis/common/v1/merge_test.go @@ -22,8 +22,8 @@ import ( "sort" "testing" + "dario.cat/mergo" "github.com/google/go-cmp/cmp" - "github.com/imdario/mergo" ) type mergoOptArr []func(*mergo.Config) diff --git a/go.mod b/go.mod index 654f7a3d1..7ee5bc236 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,12 @@ module github.com/crossplane/crossplane-runtime go 1.18 require ( + dario.cat/mergo v1.0.0 github.com/bufbuild/buf v1.21.0 github.com/go-logr/logr v1.2.4 github.com/google/go-cmp v0.5.9 github.com/hashicorp/go-getter v1.7.1 github.com/hashicorp/vault/api v1.9.2 - github.com/imdario/mergo v0.3.16 github.com/spf13/afero v1.9.5 golang.org/x/time v0.3.0 google.golang.org/grpc v1.56.1 @@ -81,6 +81,7 @@ require ( github.com/hashicorp/go-sockaddr v1.0.2 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect + github.com/imdario/mergo v0.3.16 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jdxcode/netrc v0.0.0-20221124155335-4616370d1a84 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect diff --git a/go.sum b/go.sum index 4599d3d12..ecce37709 100644 --- a/go.sum +++ b/go.sum @@ -188,6 +188,8 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= +dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= diff --git a/pkg/fieldpath/merge.go b/pkg/fieldpath/merge.go index 1583eee3d..88b7d532b 100644 --- a/pkg/fieldpath/merge.go +++ b/pkg/fieldpath/merge.go @@ -19,7 +19,7 @@ package fieldpath import ( "reflect" - "github.com/imdario/mergo" + "dario.cat/mergo" xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/crossplane/crossplane-runtime/pkg/errors"