I'm not an expert in go but it seems like this error indicates some directories are hard coded. I created a user astoycos on my server and tried the IoTCLI knative setup from there and it worked just fine:
[danclark@localhost openshift4.3.13]$ IoTCLI knative setup
2020/05/01 22:19:03 Installing Knative Serving
2020/05/01 22:19:03 Context switched to namespace: knative-serving
2020/05/01 22:19:03 Provision Openshift Serverless Operator and Knative Serving
2020/05/01 22:19:04 operatorgroup.operators.coreos.com/global-operators configured
2020/05/01 22:19:04 subscription.operators.coreos.com/serverless-operator created
2020/05/01 22:19:15 namespace/knative-serving created
knativeserving.operator.knative.dev/knative-serving created
panic: runtime error: slice bounds out of range [:26] with length 0
goroutine 1 [running]:
github.com/IoTCLI/cmd.knativeServing()
/home/astoycos/go/src/github.com/IoTCLI/cmd/knative-setup.go:79 +0xc4e
github.com/IoTCLI/cmd.glob..func18(0x267eb80, 0x26b2668, 0x0, 0x0)
/home/astoycos/go/src/github.com/IoTCLI/cmd/knative-setup.go:177 +0xbe
github.com/spf13/cobra.(*Command).execute(0x267eb80, 0x26b2668, 0x0, 0x0, 0x267eb80, 0x26b2668)
/home/astoycos/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:844 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0x267f8a0, 0x43b9da, 0x24b6d20, 0xc00007a750)
/home/astoycos/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
/home/astoycos/go/pkg/mod/github.com/spf13/cobra@v0.0.6/command.go:885
github.com/IoTCLI/cmd.Execute()
/home/astoycos/go/src/github.com/IoTCLI/cmd/root.go:47 +0x31
main.main()
/home/astoycos/go/src/github.com/IoTCLI/main.go:21 +0x20
I'm not an expert in go but it seems like this error indicates some directories are hard coded. I created a user astoycos on my server and tried the IoTCLI knative setup from there and it worked just fine: