-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: go get panic: runtime error: slice bounds out of range #14826
Comments
This looks similar to #12156 |
I'm unable to reproduce. I used Go 1.6 and configured my GOPATH the same way with two elements and tried repeatedly, sometimes deleting the $GOPATH pkg and src dirs. Can you clarify how you can reproduce this? Your repro steps say "compile nomad 8f3bffe" but that doesn't appear to match your stack trace. It appears that you actually are reporting a problem with "go get". I didn't take any care to fetch 8f3bffe specifically. Did you work around this somehow upstream? |
Getting the same issue:
Starts working when remove the Godeps from path. |
I just tried to reproduce this and couldn't. @AudriusButkevicius or @ghasemz, can you still reproduce? If so, are you willing to help debug a bit? |
I can't repro it anymore sadly. |
Not sad for me. Marking fixed. (there were several bug reports looking like this; it was probably a dup) |
I ran into a panic with an identical stack trace when attempting to re-get a repo that had a vendor git submodule that failed to clone the first time due to missing SSH keys. I can reliably reproduce it by cleaning out the vendored git submodule and using
https://gist.github.com/SpComb/76430d66ac6488c6943a7f71fddcb2ee#file-00-repro-steps-txt |
@SpComb, this bug is closed, so don't be surprised if nobody looks at this more. You're better off filing a new bug. Also, the Go 1.6.x tree is frozen. Please clarify in the new bug whether this still happens for you with Go 1.7beta2. |
copy a project's govendor vendor dir will produce this bug |
@frank0718 this bug is marked closed. Please open a new issue. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6 linux/amd64
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/hmd/.gvm/pkgsets/go1.6/global:/home/hmd"
GORACE=""
GOROOT="/home/hmd/.gvm/gos/go1.6"
GOTOOLDIR="/home/hmd/.gvm/gos/go1.6/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
compile nomad 8f3bffe (https://github.com/hashicorp/nomad)
i was expected the code to be compiled, i got this:
The text was updated successfully, but these errors were encountered: