Skip to content

dep problem on centos 7 #168

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

Closed
jmccormick2001 opened this issue Apr 3, 2018 · 4 comments · Fixed by #170
Closed

dep problem on centos 7 #168

jmccormick2001 opened this issue Apr 3, 2018 · 4 comments · Fixed by #170
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jmccormick2001
Copy link
Contributor

in trying to build operator-sdk I ran into dep issues on my centos7 dev box...basically
dep would hang after prompting me for my github userid...

after several tries of fixing this with no luck, I tried exactly the same steps using a
Ubuntu VM and 'dep ensure' worked (after removing the examples directory).

I suspect perhaps a version/package is causing this on centos 7...would be curious if anyone else builds or has run into this issue on centos 7.

@fanminshi pointed out this dep Issue while debugging this:
golang/dep#1726

none of the fixes in that Issue worked for me on centos 7.

@fanminshi
Copy link
Contributor

fanminshi commented Apr 3, 2018

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

@fanminshi fanminshi added the kind/bug Categorizes issue or PR as related to a bug. label Apr 3, 2018
@fanminshi fanminshi reopened this Apr 3, 2018
@hasbro17
Copy link
Contributor

hasbro17 commented Apr 3, 2018

@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

@jmccormick2001
Copy link
Contributor Author

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

@xenserverarmy
Copy link

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.

m1kola pushed a commit to m1kola/operator-sdk that referenced this issue Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants