schrej / podmigration-operator

Part of a PoC of Pod migration in Kubernetes
Apache License 2.0
26 stars 4 forks source link

Errors when excute command: make #6

Open kiemtcb opened 3 years ago

kiemtcb commented 3 years ago

Hi, could you help me please? I have a trouble when i run command: make.

root@ubuntu:/src/k8s.io/podmigration-operator# make go: creating new go.mod: module tmp go get: added sigs.k8s.io/controller-tools v0.2.5 /root/go/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." go fmt ./... go vet ./... controllers/suite_test.go:23:2: missing go.sum entry for module providing package github.com/onsi/ginkgo (imported by github.com/schrej/podmigration-operator/controllers); to add: go get -t github.com/schrej/podmigration-operator/controllers # github.com/go-logr/zapr /root/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:136:10: cannot use &infoLogger{...} (type infoLogger) as type logr.Logger in return argument: infoLogger does not implement logr.Logger (missing Error method) /root/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:141:2: cannot use disabledInfoLogger (type noopInfoLogger) as type logr.Logger in return argument: noopInfoLogger does not implement logr.Logger (missing Error method) # sigs.k8s.io/controller-runtime/pkg/metrics /root/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/metrics/client_go_adapter.go:134:3: cannot use &latencyAdapter{...} (type latencyAdapter) as type metrics.LatencyMetric in field value: latencyAdapter does not implement metrics.LatencyMetric (wrong type for Observe method) have Observe(string, url.URL, time.Duration) want Observe(context.Context, string, url.URL, time.Duration) /root/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/metrics/client_go_adapter.go:135:3: cannot use &resultAdapter{...} (type resultAdapter) as type metrics.ResultMetric in field value: resultAdapter does not implement metrics.ResultMetric (wrong type for Increment method) have Increment(string, string, string) want Increment(context.Context, string, string, string) make: *** [Makefile:51: vet] Error 2 root@ubuntu:/src/k8s.io/podmigration-operator#

kiemtcb commented 3 years ago

I run command "go get -t github.com/schrej/podmigration-operator/controllers" but the result is still remain the same