Giter VIP home page Giter VIP logo

Comments (4)

fanminshi avatar fanminshi commented on May 9, 2024

@jmccormick2001 Thanks for pointing this out. @hasbro17 and I take a deeper look into this 'dep ensure' worked (after removing the examples directory).

We found out that https://github.com/coreos/operator-sdk/blob/master/example/memcached-operator/handler.go has an extension of .go, and it is causing the building of operator-sdk to fail since the build tool can't find dependencies exists in the handler.go. This file is meant to be an example text and not part of the operator-sdk code based.

A quick fix is like what you said (after removing the examples directory).. We are working on a fix to rename example/memcached-operator/handler.go to example/memcached-operator/handler.go so that the go install can compile the operator-sdk.

from operator-sdk.

hasbro17 avatar hasbro17 commented on May 9, 2024

@jmccormick2001 Can you retry building the operator-sdk from the v0.0.3 tag.

$ git checkout tags/v0.0.3
$ dep ensure
$ go install github.com/coreos/operator-sdk/commands/operator-sdk

from operator-sdk.

jmccormick2001 avatar jmccormick2001 commented on May 9, 2024

good news, the 0.0.3 version appears to work on centos 7.

from operator-sdk.

xenserverarmy avatar xenserverarmy commented on May 9, 2024

With 0.0.4 I ran into dep ensure hanging also during operator-sdk new after prompting for my GitHub username. After debugging dep with pstree, I found dep hung on the following command: git ls-remote https://github.com/coreos/operator-sdk. My theory was dep was waiting on a github password, so I enabled password caching within git, issued the git ls-remote https://github.com/coreos/operator-sdk command to prompt and cache the password, then re-ran the operator-sdk new.

For others experiencing a similar issue, pstree -sa [pid] may help identify where things get blocked.

from operator-sdk.

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.