coredns/kubernetai

coredns build failed with kubernetai

ChenLingPeng opened this issue · 2 comments

I tried using master/v1.7.0/v1.6.9/v1.6.8 version of coredns/coredns with kubernetai enable, make failed with all these version.
master and v1.7.0 's output of make

../../../../pkg/mod/github.com/coredns/kubernetai@v0.0.0-20200616005541-3c3a37378785/plugin/kubernetai/setup.go:24:24: not enough arguments in call to k.InitKubeCache
	have ()
	want (context.Context)

while 1.6.9 and 1.6.8 's output of make

../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v32.6.0+incompatible/services/dns/mgmt/2018-05-01/dns/client.go:24:2: ambiguous import: found package github.com/Azure/go-autorest/autorest in multiple modules:
	github.com/Azure/go-autorest v11.1.2+incompatible (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest@v11.1.2+incompatible/autorest)
	github.com/Azure/go-autorest/autorest v0.9.4 (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest/autorest@v0.9.4)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v32.6.0+incompatible/services/dns/mgmt/2018-05-01/dns/models.go:24:2: ambiguous import: found package github.com/Azure/go-autorest/autorest/azure in multiple modules:
	github.com/Azure/go-autorest v11.1.2+incompatible (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest@v11.1.2+incompatible/autorest/azure)
	github.com/Azure/go-autorest/autorest v0.9.4 (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest/autorest@v0.9.4/azure)
plugin/azure/setup.go:14:2: ambiguous import: found package github.com/Azure/go-autorest/autorest/azure/auth in multiple modules:
	github.com/Azure/go-autorest v11.1.2+incompatible (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest@v11.1.2+incompatible/autorest/azure/auth)
	github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest/autorest/azure/auth@v0.4.2)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v32.6.0+incompatible/services/dns/mgmt/2018-05-01/dns/models.go:25:2: ambiguous import: found package github.com/Azure/go-autorest/autorest/to in multiple modules:
	github.com/Azure/go-autorest v11.1.2+incompatible (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest@v11.1.2+incompatible/autorest/to)
	github.com/Azure/go-autorest/autorest/to v0.2.0 (/Users/forrestchen/code/go/pkg/mod/github.com/!azure/go-autorest/autorest/to@v0.2.0)

kubernetai currently requires coredns v1.6.5 (per go.mod).

it works. thanks