-
Notifications
You must be signed in to change notification settings - Fork 1k
"panic: runtime error: index out of range" when dealing with git repo without HEAD #1051
Comments
This panic seems to be triggered by adding a new import in one of the source files (another internal package, like the |
Removing the new import from the source file and running
|
Sorry for the spam. After some digging, I discovered that the git repository for the new dependency I'm trying to add does not have a |
Faced the same issue yesterday when importing a new repository in Github without pushing any commits to it. 😁 I believe |
I gave it a shot. I think the hang in #1051 (comment) is a separate issue (deadlock while recovering from a panic?). |
What version of Go (
go version
) anddep
(git describe --tags
) are you using?What
dep
command did you run?What did you expect to see?
Normal
dep ensure
functionWhat did you see instead?
A panic
The text was updated successfully, but these errors were encountered: