fix(build): don't run go mod commands when generating swagger docs

This commit is contained in:
kolaente 2023-09-06 16:41:39 +02:00
parent 424bf7647b
commit 985233ac38
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -354,8 +354,8 @@ func DoTheSwag() {
return
}
runAndStreamOutput("go", "mod", "tidy")
runAndStreamOutput("go", "mod", "download")
//runAndStreamOutput("go", "mod", "tidy")
//runAndStreamOutput("go", "mod", "download")
checkAndInstallGoTool("swag", "github.com/swaggo/swag/cmd/swag")
runAndStreamOutput("swag", "init", "-g", "./pkg/routes/routes.go", "--parseDependency", "-d", RootPath, "-o", RootPath+"/pkg/swagger")
}