-
Notifications
You must be signed in to change notification settings - Fork 1k
Dep init takes forever #1129
Comments
hi, thanks for the issue! sorry, we know this is not a great first-time experience. unfortunately, dep often has a bunch of up-front work to do cloning repositories for the first time. when you look in @carolynvs do you think, at least as a stopgap, we might reinstitute the feedback we used to have in |
Yes, I'd like to add more feedback so that we don't sit for a long time without any indication of activity. But I don't recall which previous feedback you are referring to? Do you remember what the message was like at all? Or where we were printing it? I'm happy to dig it up from there. |
Thanks for answer, @sdboyer Yes I can see some dependencies at $ mkdir -p ~/golang/src/mypjt && \
export GOPATH=~/golang && \
cd $GOPATH/src/mypjt && \
echo 'package main
import (
_ "github.com/mageddo/not-found-project" // this project do not exists
_ "github.com/mageddo/go-logging" // this project exists
)' > app.go Then run
The project will never get completed. When type
Dep sources folder
I hope it help you, maybe it can be a bug |
@mageddo thanks for the additional info. it's surprising that pointing to a nonexistent repository is causing a hang - what it's no doubt doing there is trying to reach out to that URL using a progression of four protocols - if you could report the output of the following
@carolynvs it's super old school - #194. my big concern there is that we absolutely want to do that in parallel, but need to keep the output from it cleanly separated from the other output we're generating. actually, the more i think about this, the better an idea it seems, because we can explicitly cap the concurrency to say, 4, and i suspect the heavily parallel network activity is part of what makes this so costly. |
Okay, After read you answer I got the problem, ssh port is blocked in my network
|
iiiinteresting. also, unfortunately, i'm not sure we can do anything about that 😢 . at most, better feedback. |
Is not a problem for now because I just fixed the not found project URL, DEP uses HTTPS by default then everything works great, thanks for the help. Maybe reduce the connection timeout will increase the use experience? |
unfortunately we can't really directly control that, as we're invoking a subprocess. but we can terminate the subprocess after some period of time. that's currently causing a lot of headaches, so i'm generally trying to find alternatives to timeouts where possible. will think on it, though. in any case, closing, as the base problem seems to be resolved. |
I'm having this issue, except I don't see anything in |
Maybe a small progressbar? |
Too slow, time out finally ☁ golang [master] dep init -v
Getting direct dependencies...
Checked 40 directories for packages.
Found 5 direct dependencies.
Root project is "github.com/mrdulin/golang"
28 transitively valid internal packages
6 external packages imported from 5 projects
(0) ✓ select (root)
(1) ← no more versions of cloud.google.com/go to try; begin backtrack
✗ solving failed
Solver wall times by segment:
b-list-versions: 1m20.768848296s
b-source-exists: 1m15.301073786s
select-root: 629.021µs
other: 75.587µs
new-atom: 10.296µs
b-deduce-proj-root: 9.862µs
TOTAL: 2m36.070646848s
init failed: unable to solve the dependency graph: Solving failure:
(1) failed to list versions for https://code.googlesource.com/gocloud: fatal: unable to access 'https://code.googlesource.com/gocloud/': Failed to connect to code.googlesource.com port 443: Operation timed out
: exit status 128 |
What version of
dep
are you using (dep version
)?What
dep
command did you run?What did you expect to see?
The project being created
What did you see instead?
Then it never get completed. I've waited for 6 minutes the type
CTRL+C
then get the follow outputThe text was updated successfully, but these errors were encountered: