fix(build): don't require swagger to build

This commit is contained in:
kolaente
2023-09-06 21:08:09 +02:00
parent 2d9cf672b8
commit 2c0c3ea24e
3 changed files with 7 additions and 29 deletions

View File

@@ -177,9 +177,6 @@ func init() {
// Some variables have external dependencies (like git) which may not always be available.
func initVars() {
Tags = os.Getenv("TAGS")
if !strings.Contains(Tags, "swagger") {
Tags += " swagger"
}
setVersion()
setBinLocation()
setPkgVersion()