zeromicro / go-zero

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

generated package path failed #4308

Open lizcao opened 3 months ago

lizcao commented 3 months 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 3 months ago

go mod tidy,

lizcao commented 3 months ago

用这个命令是安装失败的

Issues-translate-bot commented 3 months ago

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


Installation fails with this command

kevwan commented 3 months ago

You need to init project and run go mod tidy.

kesonan commented 2 months 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=''
....