Skip to content

broken compile, working generation #333

broken compile, working generation

broken compile, working generation #333

Triggered via pull request July 15, 2024 15:50
Status Failure
Total duration 1m 46s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
go-lint: operator/configcontroller/setup.go#L31
source.Kind (value of type func[T client.Object](cache "sigs.k8s.io/controller-runtime/pkg/cache".Cache, object T, handler handler.TypedEventHandler[T], predicates ...predicate.TypedPredicate[T]) source.SyncingSource) is not a type
go-lint: operator/configcontroller/setup.go#L31
cannot use &resource.EnqueueRequestForProviderConfig{} (value of type *"github.com/crossplane/crossplane-runtime/pkg/resource".EnqueueRequestForProviderConfig) as handler.EventHandler value in argument to ctrl.NewControllerManagedBy(mgr).Named(name).For(&providerv1.ProviderConfig{}).Watches: *"github.com/crossplane/crossplane-runtime/pkg/resource".EnqueueRequestForProviderConfig does not implement handler.EventHandler (wrong type for method Create)
go-lint: operator/operator.go#L4
could not import github.com/vshn/provider-cloudscale/operator/bucketcontroller (-: # github.com/vshn/provider-cloudscale/operator/bucketcontroller
go-lint: operator/bucketcontroller/setup.go#L55
cannot use &BucketValidator{…} (value of type *BucketValidator) as admission.CustomValidator value in argument to ctrl.NewWebhookManagedBy(mgr).For(&cloudscalev1.Bucket{}).WithValidator: *BucketValidator does not implement admission.CustomValidator (wrong type for method ValidateCreate)
go-lint: operator/operator.go#L5
could not import github.com/vshn/provider-cloudscale/operator/configcontroller (-: # github.com/vshn/provider-cloudscale/operator/configcontroller
go-lint: operator/configcontroller/setup.go#L31
source.Kind (value of type func[T client.Object](cache "sigs.k8s.io/controller-runtime/pkg/cache".Cache, object T, handler handler.TypedEventHandler[T], predicates ...predicate.TypedPredicate[T]) source.SyncingSource) is not a type
go-lint: operator/configcontroller/setup.go#L31
cannot use &resource.EnqueueRequestForProviderConfig{} (value of type *"github.com/crossplane/crossplane-runtime/pkg/resource".EnqueueRequestForProviderConfig) as handler.EventHandler value in argument to ctrl.NewControllerManagedBy(mgr).Named(name).For(&providerv1.ProviderConfig{}).Watches: *"github.com/crossplane/crossplane-runtime/pkg/resource".EnqueueRequestForProviderConfig does not implement handler.EventHandler (wrong type for method Create)
go-lint: operator_command.go#L88
ws.CertDir undefined (type webhook.Server has no field or method CertDir) (typecheck)
go-lint: operator_command.go#L89
ws.TLSMinVersion undefined (type webhook.Server has no field or method TLSMinVersion) (typecheck)
go-lint: operator/bucketcontroller/setup.go#L55
cannot use &BucketValidator{…} (value of type *BucketValidator) as admission.CustomValidator value in argument to ctrl.NewWebhookManagedBy(mgr).For(&cloudscalev1.Bucket{}).WithValidator: *BucketValidator does not implement admission.CustomValidator (wrong type for method ValidateCreate)
go-lint
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/