operator-sdk: panic: runtime error: index out of range, goroutine 89 [running]
Hello, I got this problem when I use operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=AppService
I just follow the ReadMe, Quick Start.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (10 by maintainers)
Update: I can’t reproduce the above runtime error anymore.
Same for the version that I initially tested out with
operator-sdk version: v0.9.0-54-gabac23c8, commit: abac23c897b898e6fecfb2c02fe318843ae9347f
.Not entirely sure what I changed or how I managed to run
add api
inside$GOPATH/src
withGO111MODULE=off
before.This might be a go modules related issue.
While I’m not getting the
index out of range
panic I do see theruntime error: invalid memory address or nil pointer dereference
if I run the command inside$GOPATH/src
withGO111MODULES=on
:With
GO111MODULES=off
inside$GOPATH/src
or running the command outside of$GOPATH/src
there is no issue.Debugging this a bit more with the master branch to confirm.