Giter Club home page Giter Club logo

Comments (4)

vsimon avatar vsimon commented on May 17, 2024 2

I'm willing to guess that your vendor folder contains two glogs and this is causing the redefinition error i.e.

vendor/github.com/golang/glog
vendor/k8s.io/client-go/vendor/github.com/golang/glog

One quick solution might be to delete the vendor/k8s.io/client-go/vendor/github.com/golang/glog one, rebuild, and try running it again.

from client-go.

caesarxuchao avatar caesarxuchao commented on May 17, 2024 1

@dongsupark if client-go doesn't include vendor/, go get users will have a hard time. go get will download from the master branches of the dependent repos, which may not compile with client-go. We need to make trade-off, let's discuss on #83.

from client-go.

caesarxuchao avatar caesarxuchao commented on May 17, 2024

@vklonghml maybe this is not directly related to your problem, but why would k8s.io/kubernetes/cmd/kube-apiserver/apiserver.go ended up calling client-go?

from client-go.

dongsupark avatar dongsupark commented on May 17, 2024

Yesterday I hit the same issue with error messages like "flag redefined: log_dir", which was not exactly easy to address.

When a go application depends on client-go, developer should either manually clean up duplicated vendors locally, (like above) or make it selectively vendor k8s.io/client-go. Obviously the latter is a better choice in practice.

In the long term, I think client-go should not include own vendor directories on its own, like being discussed in #83.

from client-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.