Fix git version detection for zinit build

This commit is contained in:
2025-08-15 23:22:39 +02:00
parent a3e56b9eeb
commit caebd0eeda

View File

@@ -56,6 +56,9 @@ build_rust_component() {
# Source cargo environment # Source cargo environment
. ~/.cargo/env . ~/.cargo/env
# Set git version for components that use git_version macro
export GIT_DESCRIBE=$(cd "$COMPONENTS_DIR/$component_name" && git describe --tags --always --dirty=-modified 2>/dev/null || echo "unknown")
# Build with musl target for static linking # Build with musl target for static linking
cargo build --release --target x86_64-unknown-linux-musl cargo build --release --target x86_64-unknown-linux-musl