-
Notifications
You must be signed in to change notification settings - Fork 1k
dep init: panic: runtime error: slice bounds out of range #171
Comments
iiiiinteresting.
This means an internal bookkeeping bug in the solver. ...except that there doesn't appear to be a slice access on that line. |
Almost certain that
https://github.com/golang/dep/blob/master/vendor/github.com/sdboyer/gps/selection.go#L58
was inlined into unselectLast.
…On Fri, Jan 27, 2017 at 4:24 PM, sam boyer ***@***.***> wrote:
iiiiinteresting.
github.com/golang/dep/vendor/github.com/sdboyer/gps.(*solver).unselectLast(0xc420ac4a50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
This means an internal bookkeeping bug in the solver. ...except that there
doesn't appear to be a slice access on that line.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#171 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA9v5MvZsj5oU2_eHeo01DIpRqZgCks5rWX-FgaJpZM4Lu9I_>
.
|
derp. totally. thanks :) |
roll on the dev.inline branch, which will solve this (we all hope)
…On Fri, Jan 27, 2017 at 4:38 PM, sam boyer ***@***.***> wrote:
derp. totally. thanks :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#171 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA361xh7inogKxXz5wJ49DGS2-G4iks5rWYLBgaJpZM4Lu9I_>
.
|
I put some printf's to dig around a bit. In fact it is
Gave me:
|
That also makes more sense than a slice bounds error on an I'm pretty sure I see the problem here. likely related to the fix for #116, which allowed project-level cyclic dependencies involving the root project. I'm pretty sure I didn't encounter this because the additional test case I wrote didn't cause the solver to backtrack through such cycles. k8s @ db2dc78e6398ba673e68e94bd17d28a97dd4a902 does have such a project-level cycle, right? (a k8s package imports a package from a dep, which itself transitively imports some package back in k8s) If so, this is a relief, because it points away from a "bookkeeping bug" in normal operation of the solving algorithm. That would be a much more concerning correctness issue. Instead, I think the cause here is a basic choice to push the root project into the selected list, but not the deps map, when preparing the algorithm. That's a more basic structural question with an easier fix. |
This should now be fixed upstream - we'll get it in to dep with the next gps update. |
checkout github.com/kubernetes/kubernetes @ db2dc78e6398ba673e68e94bd17d28a97dd4a902
run
godep restore
to make GOPATH == what's in vendorinside kubernetes
rm -rf vendor Godeps
inside $GOPATH/src/github.com/chai2010/gettext-go make sure that chai2010/gettext-go#7 has been applied
dep init
from version 21f357aThe text was updated successfully, but these errors were encountered: