Last active
August 19, 2021 23:12
-
-
Save DazWilkin/308787703c916add61afa3c6ddd9837e to your computer and use it in GitHub Desktop.
Errors upgrading operator-sdk v1.6.2-->v1.11.0 when importing modules that use go-logr/stdr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module github.com/my-account/this-repo | |
go 1.16 | |
require ( | |
github.com/my-account/another-repo v0.0.1 | |
github.com/onsi/ginkgo v1.16.4 | |
github.com/onsi/gomega v1.13.0 | |
github.com/prometheus/client_golang v1.11.0 | |
google.golang.org/api v0.54.0 | |
k8s.io/apimachinery v0.21.2 | |
k8s.io/client-go v0.21.2 | |
sigs.k8s.io/controller-runtime v0.9.2 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module github.com/my-account/this-repo | |
go 1.16 | |
require ( | |
github.com/my-account/another-repo v0.0.1 | |
github.com/go-logr/logr v0.4.0 | |
github.com/onsi/ginkgo v1.15.2 | |
github.com/onsi/gomega v1.11.0 | |
github.com/prometheus/client_golang v1.7.1 | |
google.golang.org/api v0.42.0 | |
k8s.io/apimachinery v0.20.5 | |
k8s.io/client-go v0.20.5 | |
sigs.k8s.io/controller-runtime v0.8.3 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/tmp/memcached-operator/bin/controller-gen "crd:trivialVersions=true,preserveUnknownFields=false" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases | |
/tmp/memcached-operator/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." | |
go fmt ./... | |
go vet ./... | |
# sigs.k8s.io/controller-runtime/pkg/log | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:163:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:179:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:195:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:67:26: cannot use NullLogger{} (type NullLogger) as type logr.Logger in argument to Log.Fulfill | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:82:41: cannot use NullLogger{} (type NullLogger) as type logr.Logger in argument to NewDelegatingLogger | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:86:6: cannot use Log (type *DelegatingLogger) as type logr.Logger in assignment | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:88:13: assignment mismatch: 1 variable but logr.FromContext returns 2 values | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/null.go:30:5: cannot use NullLogger{} (type NullLogger) as type logr.Logger in assignment | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/null.go:49:2: cannot use log (type NullLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/null.go:54:2: cannot use log (type NullLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/null.go:54:2: too many errors | |
# k8s.io/klog/v2 | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:703:10: invalid operation: logr != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:722:10: invalid operation: logr != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:740:10: invalid operation: logr != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:761:10: invalid operation: logr != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:780:11: invalid operation: loggr != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:792:11: invalid operation: loggr != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:910:9: invalid operation: log != nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1272:18: invalid operation: logging.logr == nil (mismatched types logr.Logger and nil) | |
/home/dazwilkin/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1273:21: cannot use nil as type logr.Logger in field value | |
# github.com/go-logr/zapr | |
/home/dazwilkin/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:138:9: cannot use &zapLogger{...} (type *zapLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:173:9: cannot use &zapLogger{...} (type *zapLogger) as type logr.Logger in return argument | |
/home/dazwilkin/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:185:5: cannot use &zapLogger{} (type *zapLogger) as type logr.Logger in assignment | |
/home/dazwilkin/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:186:7: undefined: logr.CallDepthLogger | |
make: *** [Makefile:88: vet] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment