From 3def3d22600061394e2d61ba1e93e119c78ff471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 13 Jul 2023 15:38:39 +0200 Subject: [PATCH] Worker: make `-version` CLI option show the 'extended' version `flamenco-worker -version` now shows the 'extended' version. This is just the application version when running a release build. Otherwise it will be like `3.3-alpha0 (v3.2-nn-ghhhhhh)`, where `nn` is the number of commits since the last-tagged version (`v3.2` in this example), and `ghhhhhh` is the Git hash. This can optionally be suffixed by `-dirty` if there were any uncommitted changes when Flamenco was built. --- cmd/flamenco-worker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flamenco-worker/main.go b/cmd/flamenco-worker/main.go index 456dde25..700e27c4 100644 --- a/cmd/flamenco-worker/main.go +++ b/cmd/flamenco-worker/main.go @@ -52,7 +52,7 @@ var cliArgs struct { func main() { parseCliArgs() if cliArgs.version { - fmt.Println(appinfo.ApplicationVersion) + fmt.Println(appinfo.ExtendedVersion()) return }