Skip to content

Commit 1c52a6d

Browse files
committed
Use logging and error libraries from function-sdk-go
Remove our direct dependency on crossplane-runtime by using the error and logging packages included in function-sdk-go in place of the ones from crossplane-runtime. These packages behave identically to the crossplane-runtime versions. Signed-off-by: Adam Wolfe Gordon <[email protected]>
1 parent 13ec211 commit 1c52a6d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"context"
55

6-
"github.com/crossplane/crossplane-runtime/pkg/errors"
7-
"github.com/crossplane/crossplane-runtime/pkg/logging"
6+
"github.com/crossplane/function-sdk-go/errors"
7+
"github.com/crossplane/function-sdk-go/logging"
88
fnv1 "github.com/crossplane/function-sdk-go/proto/v1"
99
"github.com/crossplane/function-sdk-go/request"
1010
"github.com/crossplane/function-sdk-go/response"

fn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"google.golang.org/protobuf/testing/protocmp"
1010
"google.golang.org/protobuf/types/known/durationpb"
1111

12-
"github.com/crossplane/crossplane-runtime/pkg/logging"
12+
"github.com/crossplane/function-sdk-go/logging"
1313
fnv1 "github.com/crossplane/function-sdk-go/proto/v1"
1414
"github.com/crossplane/function-sdk-go/resource"
1515
"github.com/crossplane/function-sdk-go/response"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ toolchain go1.23.2
66

77
require (
88
github.com/alecthomas/kong v0.9.0
9-
github.com/crossplane/crossplane-runtime v1.18.0
109
github.com/crossplane/function-sdk-go v0.4.0
1110
github.com/google/go-cmp v0.6.0
1211
google.golang.org/protobuf v1.34.3-0.20240816073751-94ecbc261689
@@ -16,6 +15,7 @@ require (
1615

1716
require (
1817
dario.cat/mergo v1.0.1 // indirect
18+
github.com/crossplane/crossplane-runtime v1.18.0 // indirect
1919
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2020
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
2121
github.com/evanphx/json-patch/v5 v5.9.0 // indirect

0 commit comments

Comments
 (0)