root: fix dev build version being invalid semver (#12472)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user