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

after install cwgo command not found #225

Open
bestkojima opened this issue Nov 11, 2024 · 5 comments
Open

after install cwgo command not found #225

bestkojima opened this issue Nov 11, 2024 · 5 comments

Comments

@bestkojima
Copy link

Describe the bug
after install complete
when i use phrase cwgo, the terminal raise a error message that's command not found

@yzcgg
Copy link

yzcgg commented Nov 16, 2024

I have this problem too

@Jackson366
Copy link

Hello! Understood that you downloaded cwgo using go install, but received feedback that the command could not be found when using the cwgo command on the terminal. From my understanding, go install is used to compile and install specified packages or executable programs into $GOPATH/bin. This means that you may be able to find your cwgo in $GOPATH/bin and use the relevant cwgo commands in that directory. If you want to use the cwgo command anywhere on your computer, you need to configure the relevant environment variables (global variables). For example, I used Ubuntu 22.04
export PATH=$PATH:/home/ubuntu/go/bin

@MuLeiSY2021
Copy link

i have same problem,and i have already solve the problem,the reason is because my GOROOT and GOPATH be set as same value,so my 'go install' command not work,and also the 'cwgo' command not work either,use 'go env' to check your GOPATH setting

@wzhongda
Copy link

wzhongda commented Dec 27, 2024

cwgo server --type PRC --module github.com/cloudwego/biz-demo/gomall/demo/demo_thrift --service demo_thrift --idl ....\idl\echo.thrift
[ERROR]D:/Program Files/go1.22.4/pkg/mod/github.com/cloudwego/[email protected]/cwgo.go:47: generate type not supported 是怎么回事?

@Skyenought
Copy link
Collaborator

cwgo server --type PRC --module github.com/cloudwego/biz-demo/gomall/demo/demo_thrift --service demo_thrift --idl ....\idl\echo.thrift [ERROR]D:/Program Files/go1.22.4/pkg/mod/github.com/cloudwego/[email protected]/cwgo.go:47: generate type not supported 是怎么回事?

is RPC, not PRC

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

No branches or pull requests

6 participants