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 apiinside$GOPATH/srcwithGO111MODULE=offbefore.This might be a go modules related issue.
While I’m not getting the
index out of rangepanic I do see theruntime error: invalid memory address or nil pointer dereferenceif I run the command inside$GOPATH/srcwithGO111MODULES=on:With
GO111MODULES=offinside$GOPATH/srcor running the command outside of$GOPATH/srcthere is no issue.Debugging this a bit more with the master branch to confirm.