Use suffix from git tags as version descriptions

This commit is contained in:
Mikhail f. Shiryaev 2023-09-02 10:01:54 +02:00
parent 6fc73e0e1f
commit 1afc5b7e05
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -245,8 +245,10 @@ def get_version_from_string(
def get_version_from_tag(tag: str) -> ClickHouseVersion:
Git.check_tag(tag)
tag = tag[1:].split("-")[0]
return get_version_from_string(tag)
tag, description = tag[1:].split("-", 1)
version = get_version_from_string(tag)
version.with_description(description)
return version
def version_arg(version: str) -> ClickHouseVersion: