From 40b0f7df8d16edd6b323d8c08766de9259ef62e8 Mon Sep 17 00:00:00 2001 From: "Jens L." Date: Tue, 24 Dec 2024 01:21:18 +0100 Subject: [PATCH] root: fix dev build version being invalid semver (#12472) Signed-off-by: Jens Langhammer --- authentik/__init__.py | 2 +- internal/constants/constants.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/__init__.py b/authentik/__init__.py index 4a3991cf75f4..c0ef55118f20 100644 --- a/authentik/__init__.py +++ b/authentik/__init__.py @@ -16,5 +16,5 @@ def get_full_version() -> str: """Get full version, with build hash appended""" version = __version__ if (build_hash := get_build_hash()) != "": - version += "." + build_hash + return f"{version}+{build_hash}" return version diff --git a/internal/constants/constants.go b/internal/constants/constants.go index da59745be512..bf32c9d86781 100644 --- a/internal/constants/constants.go +++ b/internal/constants/constants.go @@ -16,7 +16,7 @@ func BUILD(def string) string { func FullVersion() string { ver := VERSION if b := BUILD(""); b != "" { - ver = fmt.Sprintf("%s.%s", ver, b) + return fmt.Sprintf("%s+%s", ver, b) } return ver }