I am trying to build my project with *go build *and running into an error where it seems like the type resolution of a method happens with the vendored path and the invocation of the method is happening with the actual package present in GOPATH.
client/nuageclusterclient.go:129: cannot use *listOpts (type "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg/api" .Li stOptions) as type "k8s.io/kubernetes/pkg/api".ListOptions in argument to nosc.kubeClient.Namespaces().List client/nuageclusterclient.go:144: cannot use "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg/api" .ListOptions litera l (type "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg/api" .ListOptions) as type "k8s.io/kubernetes/pkg/api".ListOp tions in argument to nosc.kubeClient.Namespaces().List client/nuageclusterclient.go:144: cannot use *"k8s.io/kubernetes/pkg/api". NamespaceList as type "github.com/nuagenetworks/openshift-integration/nuagekubemon/v endor/k8s.io/kubernetes/pkg/runtime".Object in return argument: *"k8s.io/kubernetes/pkg/api".NamespaceList does not implement "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pk g/runtime".Object (wrong type for GetObjectKind method) have GetObjectKind() "k8s.io/kubernetes/pkg/api/unversioned" .ObjectKind want GetObjectKind() "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg/api/unversioned" .ObjectKind client/nuageclusterclient.go:145: cannot use func literal (type func( "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg /api".ListOptions) ( "github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg/runtime" .Object, error)) as type "k8s.io/kuberne tes/pkg/client/cache".ListFunc in field value I am using go 1.6 and have GO15VENDOREXPERIMENT set to 1. If I build the same code with setting GO15VENDOREXPERIMENT=0, it builds fine. I have the sources in both k8s.io/kubernetes and in my vendored path at github.com/nuagenetworks/openshift-integration/nuagkeubemon/vendor/k8s.io/kubernetes. Any clues on how to fix this? Thanks, Aniket. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.