diff --git a/scripts/compile-components.sh b/scripts/compile-components.sh index 7ab86ec..b0b9010 100755 --- a/scripts/compile-components.sh +++ b/scripts/compile-components.sh @@ -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