-
Notifications
You must be signed in to change notification settings - Fork 1k
Dep init fails for github.com/streadway/amqp #1294
Comments
hi - probably some repository corruption. either |
Sorry for the late reply, was caught up with something.
Let me try and compile dep from the branch in #1279 and get back to you. |
Oops. The last Anyway, is there a way to reproduce the issue? So that I can confirm that the branch in #1279 fixes the issue as well. Also,
Any idea why they got added? I'm fearing longer compilation times because of these added packages. |
unfortunately, no - that's the problem with these cache oddity issues, once they're fixed with the
if those are present, it's because something transitively imports them. we don't have the best inspection tools for showing dependers just yet, but if your depgraph isn't too huge, you can see what's doing that via |
There's one way by which I can try to reproduce the issue:
I don't exactly remember if this was the exact flow of events. So it looks like I wasn't following Go conventions (keeping my code in
Thanks for this. I was able to find out which package needed these 2 dependencies. But I have a silly question, if you don't mind answering. When I had manually done 'go get', these packages did not get imported in my |
@sdboyer Update: I was able to reproduce the same issue by following the 5 steps mentioned above. Let me know if it helps you in debugging the root cause. or let me know if I can help you debug this more. |
Encountered the same issue after accidentally using dep ensure -update as root user. It cached the repository with root permissions only and after dropping out of root:
Tried zapping the cache $GOPATH/pkg/dep and got the permission errors on the .git folder:
A |
Having same issue... Running the dep ensure within subdirectory (long story). |
Dep version: v0.3.2
Dep init fails for github.com/streadway/amqp
No versions of github.com/streadway/amqp met constraints:
master: unable to update repository: : command failed: [git fetch --tags --prune origin]: exit status 255
abrander-no-send-after-shutdown: unable to update repository: : command failed: [git fetch --tags --prune origin]: exit status 255
update-dial-tls-example: unable to update repository: : command failed: [git fetch --tags --prune origin]: exit status 255
The text was updated successfully, but these errors were encountered: