Skip to content
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

Error: invalid character '{' after top-level value #1706

Closed
huangxinbo opened this issue May 24, 2022 · 12 comments
Closed

Error: invalid character '{' after top-level value #1706

huangxinbo opened this issue May 24, 2022 · 12 comments

Comments

@huangxinbo
Copy link

huangxinbo commented May 24, 2022

go version go1.18.2 darwin/amd64
GO111MODULE="on"

cobra-cli init 
Error: invalid character '{' after top-level value
@Alphacode18
Copy link

Hey, how was this resolved?

@kcmvp
Copy link

kcmvp commented Jun 11, 2022

ran into the same issue

@bunnycodego
Copy link

same here what the hell is this?

@fanux
Copy link

fanux commented Aug 17, 2022

+1

@ebarti
Copy link

ebarti commented Sep 16, 2022

+1...

@marckhouzam
Copy link
Collaborator

The cobra-cli currently does not support go workspaces. Please see spf13/cobra-cli#26 for details.

@DarcyNing
Copy link

+1

@Kavyashah26
Copy link

I am also facing the same Issue.
Anyone got any kind of solution for that ? Let me know and Help me figure out

@irkobl
Copy link

irkobl commented Dec 22, 2023

+1

1 similar comment
@fkmatsuda
Copy link

+1

@NoverLoad
Copy link

删除或者修改你的go.work文件名 然后重新尝试

@Wixi105
Copy link

Wixi105 commented Apr 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests