Skip to content

Commit

Permalink
(goctl): fix quickstart error while reading go module info (#4297)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesonan committed Aug 5, 2024
1 parent 64e3aed commit da2c14d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tools/goctl/quickstart/quickstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit da2c14d

Please sign in to comment.