zeromicro / go-zero

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

generated package path failed #4308

Open lizcao opened 1 month ago

lizcao commented 1 month ago

After installing with the command, the automatically generated package path failed to convert. Can you fix it? I know it can be fixed by modifying the path, but it's not user-friendly for beginners because installing according to the steps in the documentation is not easy. Can you adjust this path so that it can be installed directly through commands without needing to be adjusted? Thank you image

kesonan commented 1 month ago

go mod tidy,

lizcao commented 1 month ago

用这个命令是安装失败的

Issues-translate-bot commented 1 month ago

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


Installation fails with this command

kevwan commented 3 weeks ago

You need to init project and run go mod tidy.

kesonan commented 1 day ago

Pls check your GOMODULE status, turn it on or auto and then execute go mod tidy, you can execute go env to show your GOMODULE status, such as:

$ go env
GO111MODULE='on'
GOARCH='arm64'
GOBIN=''
....