-
Notifications
You must be signed in to change notification settings - Fork 540
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
Glide seems to hang with high CPU importing kubernetes API #615
Comments
I think I've run into the same problem using Glide version version 0.12.2. Running glide install, after Glide fetches various repositories, it grinds away emitting messages like the following:
I've had it running continuously now for about 15 hours, and I can't tell if it's getting any closer to finishing. |
FWIW, I don't think I have experienced this problem with Glide 0.11 and my Kubernetes dependencies have been about the same for quite a while. |
Per @mattfarina's comment in the "general" channel of the "Gophers" Slack team, there's a symbolic link in the Kubernetes repository that's aggravating Glide's ability to finish: % ls -l ~/.glide/cache/src/https-github.com-kubernetes-kubernetes/vendor/k8s.io
total 8
lrwxr-xr-x 1 seh staff 34 Sep 23 13:26 client-go -> ../../staging/src/k8s.io/client-go
drwxr-xr-x 4 seh staff 136 Sep 23 13:26 heapster |
I find that the same problem arises when my project depends on just the kubernetes/client-go repository, so I don't think that this symbolic link is the problem here. |
Can you try the fix to Glide in PR #622? I think this fixes it. |
I'll clone that and try it, but I may not finish before I have to give up tonight. I'll let you know by tomorrow morning. |
@mattfarina @seh I just checked out PR #622 and used it to repopulate my sample Kubernetes client's dependencies (among which k8s.io/client-go is).
From my perspective, this is ready to 🚢 ! |
Fixed #615: There was a way Glide could get stuck in a resolver loop
The resolver loop caused Kubernetes imports to fail.
Create:
$GOPATH/src/example.com/example/main.go:
Now run:
It will make slow progress for a while but eventually seems to hits a wall and seems to make no progress. It's using about 1 full CPU core while resident size increases only very slowly.
I'm using go 1.6 on Ubuntu Xenial and glide 0.12.1 from ppa.
Output looks like:
The text was updated successfully, but these errors were encountered: