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

improve goctl rpc new #1686

Closed
dfang opened this issue Mar 21, 2022 · 1 comment
Closed

improve goctl rpc new #1686

dfang opened this issue Mar 21, 2022 · 1 comment

Comments

@dfang
Copy link
Contributor

dfang commented Mar 21, 2022

Describe the bug

 λ goctl rpc new
[goctl-env]: preparing to check env

[goctl-env]: looking up "protoc"
[goctl-env]: "protoc" is installed

[goctl-env]: looking up "protoc-gen-go"
[goctl-env]: "protoc-gen-go" is installed

[goctl-env]: looking up "protoc-gen-go-grpc"
[goctl-env]: "protoc-gen-go-grpc" is installed

[goctl-env]: congratulations! your goctl environment is ready!
goctl error: <input>:3:9: found ";" but expected [package identifier]
goctl env:
GOCTL_OS=darwin
GOCTL_ARCH=amd64
GOCTL_HOME=/Users/mj/.goctl
GOCTL_DEBUG=true
GOCTL_CACHE=/Users/mj/.goctl/cache
GOCTL_VERSION=1.3.3
PROTOC_VERSION=3.19.4
PROTOC_GEN_GO_VERSION=v1.27.1
PROTO_GEN_GO_GRPC_VERSION=1.1.0

To Reproduce
run goctl rpc new without any flags or args

  1. The code is

  2. The error is

    
    

Expected behavior

show help or output an error that needs a rpc service name

Screenshots
If applicable, add screenshots to help explain your problem.

Environments (please complete the following information):

  • OS: [e.g. Linux]
  • go-zero version [e.g. 1.2.1]
  • goctl version [e.g. 1.2.1, optional]

More description
Add any other context about the problem here.

Screen Shot 2022-03-21 at 14 51 16

@noahlann
Copy link

noahlann commented Apr 1, 2022

你得提供参数啊 goctl rpc new xxx

虽然我现在也用不了这个命令。

goctl error: unsupported plugin protoc-gen-go which installed from the following source:
google.golang.org/protobuf/cmd/protoc-gen-go,
github.com/protocolbuffers/protobuf-go/cmd/protoc-gen-go;

Please replace it by the following command, we recommend to use version before v1.3.5:
go get -u github.com/golang/protobuf/protoc-gen-go

等会儿去降个版本试试看。

@dfang dfang closed this as completed Apr 17, 2022
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

2 participants