Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in building traefik from master #949

Closed
sachin-walia opened this issue Dec 9, 2016 · 4 comments
Closed

Issue in building traefik from master #949

sachin-walia opened this issue Dec 9, 2016 · 4 comments

Comments

@sachin-walia
Copy link

I tried building traefik on both OSX and Ubuntu 16 from github and in both cases it is failing with same error as below:

$ go get -d github.com/containous/traefik
package k8s.io/client-go/1.5/kubernetes: cannot find package "k8s.io/client-go/1.5/kubernetes" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/kubernetes (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/kubernetes (from $GOPATH)
package k8s.io/client-go/1.5/pkg/api: cannot find package "k8s.io/client-go/1.5/pkg/api" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/api (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/api (from $GOPATH)
package k8s.io/client-go/1.5/pkg/api/v1: cannot find package "k8s.io/client-go/1.5/pkg/api/v1" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/api/v1 (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/api/v1 (from $GOPATH)
package k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1: cannot find package "k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1 (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/apis/extensions/v1beta1 (from $GOPATH)
package k8s.io/client-go/1.5/pkg/fields: cannot find package "k8s.io/client-go/1.5/pkg/fields" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/fields (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/fields (from $GOPATH)
package k8s.io/client-go/1.5/pkg/labels: cannot find package "k8s.io/client-go/1.5/pkg/labels" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/labels (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/labels (from $GOPATH)
package k8s.io/client-go/1.5/pkg/runtime: cannot find package "k8s.io/client-go/1.5/pkg/runtime" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/runtime (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/runtime (from $GOPATH)
package k8s.io/client-go/1.5/pkg/watch: cannot find package "k8s.io/client-go/1.5/pkg/watch" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/watch (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/watch (from $GOPATH)
package k8s.io/client-go/1.5/rest: cannot find package "k8s.io/client-go/1.5/rest" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/rest (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/rest (from $GOPATH)
package k8s.io/client-go/1.5/tools/cache: cannot find package "k8s.io/client-go/1.5/tools/cache" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/tools/cache (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/tools/cache (from $GOPATH)
package k8s.io/client-go/1.5/pkg/util/intstr: cannot find package "k8s.io/client-go/1.5/pkg/util/intstr" in any of:
	/usr/local/Cellar/go/1.7.4/libexec/src/k8s.io/client-go/1.5/pkg/util/intstr (from $GOROOT)
	/gopath/src/k8s.io/client-go/1.5/pkg/util/intstr (from $GOPATH)
@emilevauge
Copy link
Member

emilevauge commented Dec 9, 2016

git clone https://k8s.io/client-go
Cloning into 'client-go'...
fatal: repository 'http://kubernetes.io/client-go/' not found

Hum... It seems broken indeed...
Ping @yvespp @errm, we should use github.com/kubernetes/client-go instead right?

@vdemeester
Copy link
Contributor

😱

@yvespp
Copy link
Contributor

yvespp commented Dec 9, 2016

go get won't work because it pulls from the master branch which doesn't have the 1.5 directory:

Sadly there is no way to tell go get from which tag to pull.

We should keep using https://k8s.io/client-go as it would even work when Kubernetes for some reason decides to move out of github.

I would say use glide install -v instead of go get. Glide will download the correct/tested versions and not use master everywhere.

Also when client-go 2.0 is released and we have switched to it this problem will disappear, but I would still not recommend using go get...

@emilevauge
Copy link
Member

Hum, indeed, I read too quickly...
Even traefik will not work using go get (we generate some code and we are not vendoring dependencies).
If you want to build traefik manually, please refer to this section.
Closing this one then :)

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants