kubernetes / sample-controller

Repository for sample controller. Complements sample-apiserver
Apache License 2.0
3.18k stars 1.1k forks source link

Build error for Foo template #26

Closed zanetworker closed 6 years ago

zanetworker commented 6 years ago

I was trying to build the code with a simple go build -o controller . and I got the following error:

# k8s.io/sample-controller/pkg/client/informers/externalversions/samplecontroller/v1alpha1
../../../k8s.io/sample-controller/pkg/client/informers/externalversions/samplecontroller/v1alpha1/foo.go:64:5: not enough arguments to return
../../../k8s.io/sample-controller/pkg/client/informers/externalversions/samplecontroller/v1alpha1/foo.go:64:18: client.SamplecontrollerV1alpha1 undefined (type versioned.Interface has no field or method SamplecontrollerV1alpha1)
../../../k8s.io/sample-controller/pkg/client/informers/externalversions/samplecontroller/v1alpha1/foo.go:70:5: not enough arguments to return
../../../k8s.io/sample-controller/pkg/client/informers/externalversions/samplecontroller/v1alpha1/foo.go:70:18: client.SamplecontrollerV1alpha1 undefined (type versioned.Interface has no field or method SamplecontrollerV1alpha1)

This worked before like a charm.

nikhita commented 6 years ago

Works for me on master. @zanetworker are you using the master branch or some other version?

zanetworker commented 6 years ago

@nikhita It happens to me while checkedout out on the master branch. I tried also using a go get but it results on the same error.

pwittrock commented 6 years ago

@zanetworker The build also works fine for me. Have you tried in a completely new GOPATH that has nothing else besides the sample-controller?

zanetworker commented 6 years ago

@pwittrock works fine for me now :). I will close the issue.