Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep ensure freeze when trying to connect to no longer existing repo #1605

Closed
nattawitc opened this issue Jan 31, 2018 · 2 comments
Closed

dep ensure freeze when trying to connect to no longer existing repo #1605

nattawitc opened this issue Jan 31, 2018 · 2 comments

Comments

@nattawitc
Copy link

nattawitc commented Jan 31, 2018

My project use github.com/tj/go-debug which used to exist and can be dep ensure just fine before. But when I try to dep ensure again, it just freeze with no indication of what happen, is it still running or trying or just freezed. I have to check htop to see ssh git@github.com git-upload-pack '/tj/go-debug' is running constantly because this repository is not there anymore.

I propose that there should be some mechanism to determine the existence of repo first before trying to do anything else.

What version of dep are you using (dep version)?

v0.4.1-28-g0d708ff

What dep command did you run?

$ dep ensure -v
Root project is "xxx"
14 transitively valid internal packages
7 external packages imported from 6 projects
(0) ✓ select (root)
(1) ? attempt github.com/asaskevich/govalidator with 1 pkgs; at least 1 versions to try
(1) try github.com/asaskevich/govalidator@v8
(1) ✓ select github.com/asaskevich/govalidator@v8 w/1 pkgs
(2) ? attempt github.com/google/go-cmp with 1 pkgs; at least 1 versions to try
(2) try github.com/google/go-cmp@v0.1.0
(2) ✓ select github.com/google/go-cmp@v0.1.0 w/4 pkgs
(3) ? attempt github.com/oliveagle/jsonpath with 1 pkgs; at least 1 versions to try
(3) try github.com/oliveagle/jsonpath@master
(3) ✓ select github.com/oliveagle/jsonpath@master w/1 pkgs
(4) ? attempt github.com/mohae/utilitybelt with 1 pkgs; at least 1 versions to try
(4) try github.com/mohae/utilitybelt@master
(4) ✓ select github.com/mohae/utilitybelt@master w/1 pkgs

What did you expect to see?

some kind of progress or retry message

What did you see instead?

dep just stop there with no indication that it freeze or just still trying

@joonas-fi
Copy link

I hit this issue as well, after someone deleted a repo I depend on, and can confirm seeing ssh git@github.com git-upload-pack '<name of non-existing repo>' just hanging in the process tree.

Now I know why my build in the CI have been unexplainedly broken and erroring out due to timeouts.. this seems like an oversight the size of a football field.

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

@mvdan mvdan closed this as completed Sep 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants