fix(release): preserve tag ancestry during source promotion

This commit is contained in:
Kevin Yue committed 2026-11-12 22:57:06 +08:00
1 parent 6e99d8d81f
commit 1547d0c1e9
3 files changed
+8 -12

No files matched your search

@@ -28,12 +28,7 @@ options=('!strip' '!lto')
pkgver() {
cd "${_pkgname_prefix}"
local version
version="$(awk -F '"' '
/^\[workspace.package\]$/ { in_workspace = 1; next }
in_workspace && /^version = / { print $2; exit }
' Cargo.toml)"
printf '%s.r%s.g%s\n' "$version" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {