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

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions