Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Unable to add client.go dependency in rancher-agent #81

Open
ghost opened this issue Dec 3, 2017 · 1 comment
Open

Unable to add client.go dependency in rancher-agent #81

ghost opened this issue Dec 3, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 3, 2017

I am trying to add client.go dependency in rancher agent. I have included

- package: k8s.io/client-go/kubernetes
  version: ee121606b0d09b2e1c467183ee46217fa85a6b67

in the trash.yml and then ./vendor/github.com/docker/distribution/vendor.conf and ./vendor/github.com/docker/docker/vendor.conf

But whenever I try update dependencies using trash update I get the following error.

INFO[0003] Fetching latest commits from 'origin' for 'k8s.io/client-go/kubernetes' 
FATA[0004] `git checkout -f --detach ee121606b0d09b2e1c467183ee46217fa85a6b67` failed:
fatal: reference is not a tree: ee121606b0d09b2e1c467183ee46217fa85a6b67

When I try to build agent I get the following:

common.go:11:2: cannot find package "k8s.io/client-go/kubernetes" in any of:
	/go/src/github.com/rancher/agent/vendor/k8s.io/client-go/kubernetes (vendor tree)
	/usr/local/go/src/k8s.io/client-go/kubernetes (from $GOROOT)
	/go/src/k8s.io/client-go/kubernetes (from $GOPATH)
 ...
@StrongMonkey
Copy link
Contributor

@atheoscommune try with k8s.io/client-go instead of k8s.io/client-go/kubernetes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant