bonnefoa / kubectl-fzf

A fast kubectl autocompletion with fzf
MIT License
447 stars 33 forks source link

Issues with k8s.io/client-go and k8s.io/utils/trace #12

Closed Mike-Dunton closed 5 years ago

Mike-Dunton commented 5 years ago

I tried blowing away the ~/go/src/k8s.io but still am having issues trying to go get cache_builder

➜  src go version
go version go1.12.9 darwin/amd64

➜  src go get -u github.com/bonnefoa/kubectl-fzf/cmd/cache_builder
# k8s.io/utils/trace
k8s.io/utils/trace/trace.go:100:57: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
k8s.io/utils/trace/trace.go:112:56: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
# k8s.io/client-go/transport
k8s.io/client-go/transport/round_trippers.go:70:11: cannot convert klog.V(9) (type klog.Verbose) to type bool
k8s.io/client-go/transport/round_trippers.go:72:11: cannot convert klog.V(8) (type klog.Verbose) to type bool
k8s.io/client-go/transport/round_trippers.go:74:11: cannot convert klog.V(7) (type klog.Verbose) to type bool
k8s.io/client-go/transport/round_trippers.go:76:11: cannot convert klog.V(6) (type klog.Verbose) to type bool
Mike-Dunton commented 5 years ago

I was able to get around this by

go get k8s.io/klog
cd $GOPATH/src/k8s.io/klog
git checkout v0.4.0