golang / dep

Go dependency management tool experiment (deprecated)
https://golang.github.io/dep/
BSD 3-Clause "New" or "Revised" License
12.87k stars 1.05k forks source link

dep ensure failed with `lock and vendor: failed to export` #2231

Closed kimyen closed 4 years ago

kimyen commented 4 years ago

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

dep version
dep:
 version     : v0.5.4
 build date  : 2019-09-29
 git hash    : 1f7c19e
 go version  : go1.13
 go compiler : gc
 platform    : darwin/amd64
 features    : ImportDuringSolve=false

What dep command did you run?

dep ensure -v

What did you expect to see?

successful -- this is my first time using dep

What did you see instead?

It hang:

dep ensure -v
# Bringing vendor into sync

After a long time (20m - 1h) (I have been uninstall and reinstall go and dep and test this all day), I hit ^C and get:

dep ensure -v
# Bringing vendor into sync
c^CSignal received: waiting for 1 ops to complete...
grouped write of manifest, lock and vendor: failed to export github.com/hashicorp/vault:
    (1) failed to list versions for https://github.com/hashicorp/vault: : signal: interrupt
    (2) context canceled
    (3) context canceled
    (4) context canceled
kimyen commented 4 years ago

I have been at this all day and run out of idea on what to try. Any help would be greatly appreciated. Thanks!

kimyen commented 4 years ago

I had this problem dues to trying to get dependencies from private repositories. My git config was set to use git@github.com instead of https. I resolved this problem by removing that git config rule, and use a PAT.