mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
(goctl): fix quickstart error while reading go module info (#4297)
This commit is contained in:
@@ -56,12 +56,8 @@ func initProject() {
|
||||
}
|
||||
|
||||
log.Must(pathx.MkdirIfNotExist(projectDir))
|
||||
if hasGoMod, _ := ctx.IsGoMod(projectDir); hasGoMod {
|
||||
return
|
||||
}
|
||||
if exitCode := execCommand(projectDir, "go mod init "+baseDir); exitCode != 0 {
|
||||
log.Fatalln("Init process exit")
|
||||
}
|
||||
_, err = ctx.Prepare(projectDir)
|
||||
logx.Must(err)
|
||||
}
|
||||
|
||||
func run(_ *cobra.Command, _ []string) error {
|
||||
|
||||
Reference in New Issue
Block a user