From 43c81665f5c3da2ae0e33a472b32c904e1252ec2 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 30 Aug 2023 00:36:10 +0200 Subject: [PATCH] fixed the version not being set --- server/main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server/main.go b/server/main.go index 2b8d010f..fbe78c2a 100644 --- a/server/main.go +++ b/server/main.go @@ -33,11 +33,10 @@ import ( "gorm.io/gorm" ) -const ( - httpPort = ":50051" - // Version is injected at build time by the compiler with the correct git-commit-sha or "dev" in development - Version = "dev" -) +const httpPort = ":50051" + +// Version is injected at build time by the compiler with the correct git-commit-sha or "dev" in development +var Version = "dev" //go:embed swagger var swagfs embed.FS