-
Notifications
You must be signed in to change notification settings - Fork 1k
panic: runtime error: index out of range #1437
Comments
Seems to be re-producible. I deleted |
hiya, welcome! sorry you're running into this. the k8s migration path is still difficult, unfortunately; we've got several issues open and it's very much on our radar. the panic is definitely a solver bookkeeping bug, and one i've not seen before. not much more to say about that except "whoops," and i'll have to dig in to address it. (i replicated locally, though the panic ended up occurring on a different project). the hang when checking on bitbucket but not having |
I was just hunting through issues before filing one about this, @sdboyer is there an issue tracking this hang? We just ran into this at kubernetes/test-infra#6043 / kubernetes/test-infra#5987, and I remember seeing this before and then forgetting about it after installing |
heh.. I was just verifying that this is still an issue on HEAD (it is). if you import a mercurial dependency, don't have if you CTRL+C it, you get the following:
|
Getting this same error, just not on |
If someone from the team is available, I would be ok with sharing the private traces/verbose output with them personally for debugging, as long as nothing is posted publicly. |
@nhooyr you can send them to me on slack. i hope to have time to look at the panics here, at least, in a couple weeks. still trying to get the next release out the door, first. |
I just hit this myself using
I had a working .toml and .lock file. I changed an upstream dependency and while I wait for my PR to be approved on that one, I wanted to pin the dependency in this project to that particular revision. I tried this:
(This, btw, is somewhat misleading -- So I deleted the .lock file and the
[Edit] Several hours later I looked again at the .toml file and I had used Maybe the solver is blowing up when looking for version tags that aren't valid? |
I am running into the same issue with the latest version of
It gets really blocking for my project. Does anyone of you succeeded to circumvent this bug? |
@EtienneM Best you switch to go mod. |
I'll see if I can take a look at this tonight |
it's a tricky bookkeeping error in the solver. I've never been able to reproduce it, so I don't know what conditions cause it. if it can be reproduced, the problem spot should be obvious. (it's almost certainly something in backtracking) |
@EtienneM are you able to reproduce this error reliably, or is it sporadic? Do you have a public repository that you can reliably reproduce the issue on? |
I reproduce it reliably but sadly it's on a private repo... |
I am facing the same issue regularly! Is there anyway I can bypass this error and continue? |
same here.
On the second try it was working. |
@kevinburke is dep now officially deprecated? |
No, see #2166; we're trying to make decisions about how to prioritize a (very limited) amount of maintainer time and assumed if people were still running into problems they could reopen tickets. |
After upgrading to dep 0.5.3, we are facing same issue for 'dep ensure -update'. Here is the stack trace
How do we resolve this? |
Do you have a way for me to reliably reproduce the issue? If I can reproduce it, I can probably put together a fix. |
I'm happy to sign whatever NDA's you need. |
We are getting this error all the time.. May be I can try this in simple project to reproduce it so that I can share that code to you.. |
OK, thanks. |
Right now I can share the 'dep ensure -update -v' output if needed. Will that help? |
A Gopkg.toml with dependencies I can download would probably be better! But that would help. kevin@burke.services |
inputs that can reliably reproduce it would be HUGELY helpful. it's a bookkeeping bug in the solver, but without reliable reproduction steps, I was never able to isolate it.
…On June 12, 2019 12:41:49 AM EDT, Kevin Burke ***@***.***> wrote:
Do you have a way for me to reliably reproduce the issue? If I can
reproduce it, I can probably put together a fix.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1437 (comment)
|
I have been in offline discussion with @kevinburke for reproducing steps along with Gopkg.toml file. I will be sharing necessary details if required. Just update where it fails is
|
Trying to use dep for project containing a single test file that imports Kubernetes.
I tried to run
dep init
but it failed.So I created a
Gopkg.toml
file, which overrides the specific versions of Kubernetes projects that I want to depend on, and randep ensure -v
.It failed a couple more times and I added specific versions of
golang.org/x/exp
andgithub.com/opencontainers/runc
to the overrides.This time it got further, but hung at
I ran strace on the subprocess:
I ran
git ls-remote git://bitbucket.org/ww/goautoneg
in another shell and it hung for me too.I installed mercurial (
hg
) and then killed the subprocesses.Now dep makes progress but fails as follows.
The text was updated successfully, but these errors were encountered: