Error: invalid character '{' after top-level value
go version go1.18.2 darwin/amd64 GO111MODULE="on"
cobra-cli init
Error: invalid character '{' after top-level value
Hey, how was this resolved?
ran into the same issue
same here what the hell is this?
+1
+1...
The cobra-cli currently does not support go workspaces. Please see https://github.com/spf13/cobra-cli/issues/26 for details.
+1
I am also facing the same Issue. Anyone got any kind of solution for that ? Let me know and Help me figure out
+1
+1
删除或者修改你的go.work文件名 然后重新尝试
As @NoverLoad said, deleting your go.work file and running the cobra-cli init command fixes this problem. Cobra seems to not work with go workspaces just yet.