Client-go: Build failure using client-go version v12.0.0

Created on 19 Jul 2019  路  1Comment  路  Source: kubernetes/client-go

Build errors:

# github.com/mayadata-io/litmus-manager/vendor/k8s.io/client-go/rest/watch
vendor/k8s.io/client-go/rest/watch/decoder.go:57:103: undefined: watch.Bookmark
make: *** [Makefile:7: build] Error 2

Client-go version: "v12.0.0"
Go version: go1.12.6 linux/amd64

Most helpful comment

vendor/k8s.io/client-go/rest/watch/decoder.go:57:103: undefined: watch.Bookmark

It exists here https://github.com/kubernetes/apimachinery/blob/kubernetes-1.15.0/pkg/watch/watch.go#L47.

Are you using the corresponding version of apimachinery? https://github.com/kubernetes/client-go/blob/v12.0.0/go.mod#L30

You can also get this version by adding require k8s.io/apimachinery kubernetes-1.15.0 to your go.mod file.

>All comments

vendor/k8s.io/client-go/rest/watch/decoder.go:57:103: undefined: watch.Bookmark

It exists here https://github.com/kubernetes/apimachinery/blob/kubernetes-1.15.0/pkg/watch/watch.go#L47.

Are you using the corresponding version of apimachinery? https://github.com/kubernetes/client-go/blob/v12.0.0/go.mod#L30

You can also get this version by adding require k8s.io/apimachinery kubernetes-1.15.0 to your go.mod file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tamalsaha picture tamalsaha  路  3Comments

h0tbird picture h0tbird  路  3Comments

vklonghml picture vklonghml  路  4Comments

tamalsaha picture tamalsaha  路  6Comments

antoineco picture antoineco  路  6Comments