root: fix dev build version being invalid semver (#12472)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-12-24 01:21:18 +01:00
committed by GitHub
parent ee6fcdfbd8
commit 40b0f7df8d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}