1
0

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

@ -16,8 +16,15 @@
package version
import "code.vikunja.io/api/pkg/swagger"
// This package holds the version info
// It is an own package to avoid import cycles
// Version sets the version to be printed to the user. Gets overwritten by "make release" or "make build" with last git commit or tag.
var Version = "dev"
func init() {
// Additional swagger information
swagger.SwaggerInfo.Version = Version
}