Skip to content

Update module github.com/crossplane/function-sdk-go to v0.3.0 - autoclosed #54

Update module github.com/crossplane/function-sdk-go to v0.3.0 - autoclosed

Update module github.com/crossplane/function-sdk-go to v0.3.0 - autoclosed #54

Triggered via pull request September 19, 2024 00:02
Status Failure
Total duration 1m 27s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

23 errors
unit-test: fn.go#L52
cannot use req (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionRequest) as *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionRequest value in argument to response.To
unit-test: fn.go#L55
cannot use req (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionRequest) as *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionRequest value in argument to request.GetInput
unit-test: fn.go#L60
cannot use rsp (variable of type *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionResponse) as *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionResponse value in return statement
unit-test: fn.go#L63
cannot use req (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionRequest) as *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionRequest value in argument to request.GetObservedCompositeResource
unit-test: fn.go#L69
cannot use rsp (variable of type *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionResponse) as *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionResponse value in return statement
unit-test: fn.go#L140
cannot use c (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".Condition) as *"github.com/crossplane/function-sdk-go/proto/v1".Condition value in argument to append
unit-test: fn.go#L155
cannot use r (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".Result) as *"github.com/crossplane/function-sdk-go/proto/v1".Result value in argument to append
unit-test: fn.go#L163
cannot use rsp (variable of type *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionResponse) as *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionResponse value in return statement
unit-test: main.go#L27
cannot use &Function{…} (value of type *Function) as "github.com/crossplane/function-sdk-go/proto/v1".FunctionRunnerServiceServer value in argument to function.Serve: *Function does not implement "github.com/crossplane/function-sdk-go/proto/v1".FunctionRunnerServiceServer (wrong type for method RunFunction)
unit-test
Process completed with exit code 1.
build (amd64)
buildx failed with: ERROR: failed to solve: process "/bin/sh -c GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /function ." did not complete successfully: exit code: 1
build (arm64)
The job was canceled because "amd64" failed.
build (arm64)
The operation was canceled.
lint: fn.go#L52
cannot use req (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionRequest) as *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionRequest value in argument to response.To
lint: fn.go#L55
cannot use req (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionRequest) as *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionRequest value in argument to request.GetInput
lint: fn.go#L60
cannot use rsp (variable of type *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionResponse) as *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionResponse value in return statement
lint: fn.go#L63
cannot use req (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionRequest) as *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionRequest value in argument to request.GetObservedCompositeResource
lint: fn.go#L69
cannot use rsp (variable of type *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionResponse) as *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionResponse value in return statement
lint: fn.go#L140
cannot use c (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".Condition) as *"github.com/crossplane/function-sdk-go/proto/v1".Condition value in argument to append
lint: fn.go#L155
cannot use r (variable of type *"github.com/crossplane/function-sdk-go/proto/v1beta1".Result) as *"github.com/crossplane/function-sdk-go/proto/v1".Result value in argument to append
lint: fn.go#L163
cannot use rsp (variable of type *"github.com/crossplane/function-sdk-go/proto/v1".RunFunctionResponse) as *"github.com/crossplane/function-sdk-go/proto/v1beta1".RunFunctionResponse value in return statement
lint: main.go#L27
cannot use &Function{…} (value of type *Function) as "github.com/crossplane/function-sdk-go/proto/v1".FunctionRunnerServiceServer value in argument to function.Serve: *Function does not implement "github.com/crossplane/function-sdk-go/proto/v1".FunctionRunnerServiceServer (wrong type for method RunFunction)
lint
issues found