diff --git a/fn.go b/fn.go index 6e4dbd2..d70a6e4 100644 --- a/fn.go +++ b/fn.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - "github.com/crossplane/crossplane-runtime/pkg/errors" - "github.com/crossplane/crossplane-runtime/pkg/logging" + "github.com/crossplane/crossplane-runtime/v2/pkg/errors" + "github.com/crossplane/crossplane-runtime/v2/pkg/logging" "google.golang.org/protobuf/types/known/structpb" "k8s.io/apimachinery/pkg/runtime" "kcl-lang.io/krm-kcl/pkg/api" diff --git a/fn_test.go b/fn_test.go index 961373e..7b832ab 100644 --- a/fn_test.go +++ b/fn_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/crossplane/crossplane-runtime/pkg/logging" + "github.com/crossplane/crossplane-runtime/v2/pkg/logging" "github.com/go-logr/logr/testr" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" diff --git a/go.mod b/go.mod index 8a4a51d..d69b401 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.6 require ( dario.cat/mergo v1.0.1 github.com/alecthomas/kong v1.12.1 - github.com/crossplane/crossplane-runtime v1.20.0 + github.com/crossplane/crossplane-runtime/v2 v2.0.0 github.com/crossplane/function-sdk-go v0.5.0-rc.0.0.20250805171053-2910b68d255d github.com/go-logr/logr v1.4.3 github.com/google/go-cmp v0.7.0 @@ -54,6 +54,7 @@ require ( github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 // indirect github.com/containers/ocicrypt v1.2.1 // indirect github.com/containers/storage v1.57.2 // indirect + github.com/crossplane/crossplane-runtime v1.18.0 // indirect github.com/cyphar/filepath-securejoin v0.4.1 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dchest/siphash v1.2.3 // indirect diff --git a/go.sum b/go.sum index b0a8e25..e3d0e89 100644 --- a/go.sum +++ b/go.sum @@ -748,8 +748,10 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6N github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/crossplane/crossplane-runtime v1.20.0 h1:I54uipRIecqZyms+vz1J/l62yjVQ7HV5w+Nh3RMrUtc= -github.com/crossplane/crossplane-runtime v1.20.0/go.mod h1:lfV1VJenDc9PNVLxDC80YjPoTm+JdSZ13xlS2h37Dvg= +github.com/crossplane/crossplane-runtime v1.18.0 h1:aAQIMNOgPbbXaqj9CUSv+gPl3QnVbn33YlzSe145//0= +github.com/crossplane/crossplane-runtime v1.18.0/go.mod h1:p7nVVsLn0CWjsLvLCtr7T40ErbTgNWKRxmYnwFdfXb4= +github.com/crossplane/crossplane-runtime/v2 v2.0.0 h1:PK2pTKfshdDZ5IfoiMRiCi0PBnIjqbS0KGXEJgRdrb4= +github.com/crossplane/crossplane-runtime/v2 v2.0.0/go.mod h1:pkd5UzmE8esaZAApevMutR832GjJ1Qgc5Ngr78ByxrI= github.com/crossplane/function-sdk-go v0.5.0-rc.0.0.20250805171053-2910b68d255d h1:bzt8qEg9I2GrLc216IuuTn4x+GECxc+DoGlDZ4PMuJY= github.com/crossplane/function-sdk-go v0.5.0-rc.0.0.20250805171053-2910b68d255d/go.mod h1:fEwSBgMH6+kicaBeOWz6PZRwhjLg4tu9QEDeP/9O2yE= github.com/crossplane/upjet v1.4.1-0.20240911184956-3afbb7796d46 h1:2IH1YPTBrNmBj0Z1OCjEBTrQCuRaLutZbWLaswFeCFQ= diff --git a/pkg/resource/conditions.go b/pkg/resource/conditions.go index 59312f9..a2d5a9f 100644 --- a/pkg/resource/conditions.go +++ b/pkg/resource/conditions.go @@ -1,9 +1,9 @@ package resource import ( - xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - "github.com/crossplane/crossplane-runtime/pkg/errors" - "github.com/crossplane/crossplane-runtime/pkg/logging" + xpv1 "github.com/crossplane/crossplane-runtime/v2/apis/common/v1" + "github.com/crossplane/crossplane-runtime/v2/pkg/errors" + "github.com/crossplane/crossplane-runtime/v2/pkg/logging" fnv1 "github.com/crossplane/function-sdk-go/proto/v1" "github.com/crossplane/function-sdk-go/response" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/resource/events.go b/pkg/resource/events.go index bb0c61d..4652b31 100644 --- a/pkg/resource/events.go +++ b/pkg/resource/events.go @@ -1,7 +1,7 @@ package resource import ( - "github.com/crossplane/crossplane-runtime/pkg/errors" + "github.com/crossplane/crossplane-runtime/v2/pkg/errors" fnv1 "github.com/crossplane/function-sdk-go/proto/v1" "github.com/crossplane/function-sdk-go/response" "k8s.io/utils/ptr" diff --git a/pkg/resource/res.go b/pkg/resource/res.go index bac63d8..8517964 100644 --- a/pkg/resource/res.go +++ b/pkg/resource/res.go @@ -8,8 +8,8 @@ import ( "strings" "dario.cat/mergo" - "github.com/crossplane/crossplane-runtime/pkg/fieldpath" - "github.com/crossplane/crossplane-runtime/pkg/meta" + "github.com/crossplane/crossplane-runtime/v2/pkg/fieldpath" + "github.com/crossplane/crossplane-runtime/v2/pkg/meta" "github.com/crossplane/function-sdk-go/resource" "github.com/crossplane/function-sdk-go/resource/composed"