-
Notifications
You must be signed in to change notification settings - Fork 1k
Unable to update dependency from private GitHub repository #1419
Comments
hi! thanks for the detailed report, and especially for reaching into the cache dir and noticing that the local repo wasn't getting updated. at the same time, i've not seen a report like this in some time - could you possibly try reproducing this issue with the latest from master? |
Hi. Same thing with a recent version of the tool obtained with
The source code is actually at revision ef6a28f On another computer that also exhibits the problem, the directory name is |
After updating dep several colleagues and myself (on several different machines) ran into this issue today. But we don't use any private GitHub repositories so it might be a different issue! The error message is almost the same and every execution of
What is also curious is that when executing After cleaning up the dep cache dir everything works fine. |
+1 |
+1 reproduce:
potential cause:
Thank you! |
What version of
dep
are you using (dep version
)?What
dep
command did you run?What did you expect to see?
Success
What did you see instead?
Description
Because projectB is a private repository, a SSH key is required and without additional configuration tools such as
go get
anddep
fail. The additional configuration is:Initially
dep ensure
seems to work, but if projectB is updated I face the issue described in this ticket.Workaround
Removing the directory
pkg/dep/sources/https---github.com-user-projectB
forcesdep ensure
to clone again the repository with the latest source code.Alternatively (and more cleanly) running
git fetch
in the aforementioned directory makes all the SHA1 available todep ensure
.The text was updated successfully, but these errors were encountered: