Thanks Justin. I double-checked - every usage imports it as 
k8s.io/kubernetes/pkg/api 
<http://www.google.com/url?q=http%3A%2F%2Fk8s.io%2Fkubernetes%2Fpkg%2Fapi&sa=D&sntz=1&usg=AFQjCNEn44bGTgO5HAYwuyKNhoRNschY4A>
. 


On Friday, October 28, 2016 at 3:38:47 PM UTC-4, Justin Israel wrote:
>
>
>
> On Sat, 29 Oct 2016, 12:41 AM Aniket Bhat <anike...@gmail.com 
> <javascript:>> wrote:
>
>> 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.
>>
>
> Do you have code that imports the dependency using a path like this? 
>
>
> github.com/nuagenetworks/openshift-integration/nuagekubemon/vendor/k8s.io/kubernetes/pkg/api
>
> Or is every usage of it in your code imported as 
>
> k8s.io/kubernetes/pkg/api 
> <http://www.google.com/url?q=http%3A%2F%2Fk8s.io%2Fkubernetes%2Fpkg%2Fapi&sa=D&sntz=1&usg=AFQjCNEn44bGTgO5HAYwuyKNhoRNschY4A>
>
> Just a guess but it would seem like you are importing two copies of the 
> library? 
>
>
>
>
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.

Reply via email to