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

dep ensure -add waits for a long time without any feedback #1202

Closed
darkowlzz opened this issue Sep 22, 2017 · 5 comments · Fixed by #1218
Closed

dep ensure -add waits for a long time without any feedback #1202

darkowlzz opened this issue Sep 22, 2017 · 5 comments · Fixed by #1218

Comments

@darkowlzz
Copy link
Collaborator

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

v0.3.1-27-gfcbc4be

What dep command did you run?

$ time dep ensure -v -add gopkg.in/src-d/go-git.v4
<-------- LONG WAIT HERE WITHOUT ANY FEEDBACK------->
Root project is "github.com/darkowlzz/go-git-foo"
 1 transitively valid internal packages
 1 external packages imported from 1 projects
....
"gopkg.in/src-d/go-git.v4" is not imported by your project, and has been temporarily added to Gopkg.lock and vendor/.
If you run "dep ensure" again before actually importing it, it will disappear from Gopkg.lock and vendor/.

real	1m33.095s
user	0m3.245s
sys	0m3.689s

What did you expect to see?

Some feedback about what's happening. Maybe a message that it's fetching the source.

What did you see instead?

Nothing.

@carlisia
Copy link

carlisia commented Sep 22, 2017

I just started using dep, so take it with a grain or two of salt:

I was struggling with the -add flag too, dep wasn't recognizing it. It says in the README that's how to add a dependency.

I ran dep status and it listed an example of how to add the dependency I needed to add. So dep recognized what was missing and spelled it out for me!

This is what it showed:
dep ensure github.com/pkg/errors

It worked.

@sdboyer
Copy link
Member

sdboyer commented Sep 22, 2017

@carlisia hi! ah, you've got an old version! update to the latest release, and the docs should make more sense :)

@carlisia
Copy link

Ha! Thanks for pointing it out @sdboyer! But, is there a special way to update dep? Running go get -u github.com/golang/dep doesn't seem to give me the -add flag for the ensure cmd (See the image,) and I can't seem to find a cmd that'll give me the version of dep that I'm using.

Also, terribly sorry that I have hijacked this issue.

image

@ibrasho
Copy link
Collaborator

ibrasho commented Sep 25, 2017

You can update dep by any of the following methods:

  1. Download a binary from the releases page.
  2. Install using brew (assuming you are on macOS).
  3. go get -u github.com/golang/dep/cmd/dep

@carlisia
Copy link

Ha. That worked, all good now. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants