Fix git version detection for zinit build
This commit is contained in:
@@ -56,6 +56,9 @@ build_rust_component() {
|
||||
# Source cargo environment
|
||||
. ~/.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
|
||||
cargo build --release --target x86_64-unknown-linux-musl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user