From 1b6ea4b6e1b0b1fb79f3e2887f61f92c4c00330c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 10 Feb 2023 04:33:28 +0100 Subject: [PATCH] use same version var on cli app as header --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 8eac1fb..6c1d0cc 100644 --- a/main.go +++ b/main.go @@ -8,15 +8,13 @@ import ( "github.com/urfave/cli/v2" "codeberg.org/codeberg/pages/cmd" + "codeberg.org/codeberg/pages/server/version" ) -// can be changed with -X on compile -var version = "dev" - func main() { app := cli.NewApp() app.Name = "pages-server" - app.Version = version + app.Version = version.Version app.Usage = "pages server" app.Action = cmd.Serve app.Flags = cmd.ServerFlags