zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
28.92k stars 3.91k forks source link

some dependencies is not found in PATH #3868

Open ha666 opened 8 months ago

ha666 commented 8 months ago
➜  hell go env | grep 'GOPATH'
GOPATH='/Users/ha666/gopath'
➜  hell goctl env check --install --verbose --force
[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 not found in PATH
[goctl-env]: preparing to install "protoc-gen-go"
"protoc-gen-go" installed from cache
[goctl-env]: "protoc-gen-go" is already installed in "/Users/ha666/gopath/bin/protoc-gen-go"

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

[goctl-env]: congratulations! your goctl environment is ready!
➜  hell goctl env check --verbose
[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 not found in PATH

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

[goctl-env]: check env finish, some dependencies is not found in PATH, you can execute
command 'goctl env check --install' to install it, for details, please execute command
'goctl env check --help'
ha666 commented 8 months ago
➜  bin ll | grep 'protoc'
-rwxrwxrwx  1 ha666  staff   8.6M  1 22 16:25 protoc-gen-go
-rwxr-xr-x  1 ha666  staff    13M  7 22  2022 protoc-gen-openapi
-rwxr-xr-x  1 ha666  staff   7.7M  7 22  2022 protoc-gen-go-grpc
-rwxr-xr-x  1 ha666  staff   8.5M  7 22  2022 protoc-gen-go-errors
-rwxr-xr-x  1 ha666  staff   8.2M  7 22  2022 protoc-gen-go-http
-rwxr-xr-x  1 ha666  staff   6.4M  7  1  2022 protoc-gen-micro
-rwxr-xr-x  1 ha666  staff   8.9M  3 16  2022 protoc-gen-swagger
-rwxr-xr-x  1 ha666  staff   9.7M  2 25  2022 protoc-gen-validate
-rwxr-xr-x  1 ha666  staff    11M  8  4  2021 protoc-gen-openapiv2
-rwxr-xr-x  1 ha666  staff   9.1M  7 30  2021 protoc-gen-gogofaster
-rwxr-xr-x  1 ha666  staff   9.1M  7 30  2021 protoc-gen-gogo
-rwxr-xr-x@ 1 ha666  staff   4.0M  1  1  1980 protoc
Issues-translate-bot commented 8 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


➜ bin ll | grep 'protoc'
-rwxrwxrwx 1 ha666 staff 8.6M 1 22 16:25 protoc-gen-go
-rwxr-xr-x 1 ha666 staff 13M 7 22 2022 protoc-gen-openapi
-rwxr-xr-x 1 ha666 staff 7.7M 7 22 2022 protoc-gen-go-grpc
-rwxr-xr-x 1 ha666 staff 8.5M 7 22 2022 protoc-gen-go-errors
-rwxr-xr-x 1 ha666 staff 8.2M 7 22 2022 protoc-gen-go-http
-rwxr-xr-x 1 ha666 staff 6.4M 7 1 2022 protoc-gen-micro
-rwxr-xr-x 1 ha666 staff 8.9M 3 16 2022 protoc-gen-swagger
-rwxr-xr-x 1 ha666 staff 9.7M 2 25 2022 protoc-gen-validate
-rwxr-xr-x 1 ha666 staff 11M 8 4 2021 protoc-gen-openapiv2
-rwxr-xr-x 1 ha666 staff 9.1M 7 30 2021 protoc-gen-gogofaster
-rwxr-xr-x 1 ha666 staff 9.1M 7 30 2021 protoc-gen-gogo
-rwxr-xr-x@ 1 ha666 staff 4.0M 1 1 1980 protoc
kesonan commented 4 months ago

Execute the following command and see what the output is? If there is no result output, or the output is an empty string, it is considered not the expected executable file.

protoc-gen-go --version
hrd-99 commented 1 month ago

请问问题解决了吗,我遇到了同样的问题

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is the problem solved? I encountered the same problem.