<p dir="auto">I'm playing with k8s by writing a go client to contact k8s api. However, when doing "go get k8s.io/kubernetes/pkg/api", there are too many errors:</p>
<p dir="auto">$ go get k8s.io/kubernetes/pkg/api</p>
<h1 dir="auto">k8s.io/kubernetes/pkg/api</h1>
<p dir="auto">../../../k8s.io/kubernetes/pkg/api/types.generated.go:439: r.EncodeEnd undefined (type codec.encDriver has no field or method EncodeEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:454: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:457: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:461: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:464: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:619: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:637: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:652: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:667: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:682: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)<br>
../../../k8s.io/kubernetes/pkg/api/types.generated.go:682: too many errors</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ # with an empty GOPATH
$ go get k8s.io/kubernetes/pkg/api"><pre class="notranslate"><code class="notranslate">$ # with an empty GOPATH
$ go get k8s.io/kubernetes/pkg/api
</code></pre></div>
<p dir="auto">What I expected to happen: the package is fetched, compiled, and made available for use.</p>
<p dir="auto">What actually happened:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# k8s.io/kubernetes/pkg/api
src/k8s.io/kubernetes/pkg/api/types.generated.go:439: r.EncodeEnd undefined (type codec.encDriver has no field or method EncodeEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:454: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)
src/k8s.io/kubernetes/pkg/api/types.generated.go:457: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:461: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)
src/k8s.io/kubernetes/pkg/api/types.generated.go:464: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:619: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:637: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:652: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:667: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:682: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:682: too many errors"><pre class="notranslate"><code class="notranslate"># k8s.io/kubernetes/pkg/api
src/k8s.io/kubernetes/pkg/api/types.generated.go:439: r.EncodeEnd undefined (type codec.encDriver has no field or method EncodeEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:454: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)
src/k8s.io/kubernetes/pkg/api/types.generated.go:457: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:461: r.IsContainerType undefined (type codec.decDriver has no field or method IsContainerType)
src/k8s.io/kubernetes/pkg/api/types.generated.go:464: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:619: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:637: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:652: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:667: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:682: r.ReadEnd undefined (type codec.decDriver has no field or method ReadEnd)
src/k8s.io/kubernetes/pkg/api/types.generated.go:682: too many errors
</code></pre></div>
<p dir="auto">type.generated.go needs to be regenerated with the latest codec.</p>
<p dir="auto">It is insufficient to say this is handled by Godeps, as third-party packages directly <code class="notranslate">import "k8s.io/kumernetes/pkg/api"</code>, and you don't rewrite your import paths.</p>