This is an automated email from the ASF dual-hosted git repository.

richox pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/auron.git


The following commit(s) were added to refs/heads/master by this push:
     new 832b9b78 up (#1691)
832b9b78 is described below

commit 832b9b785b11615ca6f11975ee40f98a90deff84
Author: Thomas <[email protected]>
AuthorDate: Thu Dec 4 19:52:17 2025 +0800

    up (#1691)
---
 dev/mvn-build-helper/build-native.sh | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/dev/mvn-build-helper/build-native.sh 
b/dev/mvn-build-helper/build-native.sh
index f97eddb1..6539204d 100755
--- a/dev/mvn-build-helper/build-native.sh
+++ b/dev/mvn-build-helper/build-native.sh
@@ -17,7 +17,7 @@
 # limitations under the License.
 #
 
-set -ex
+set -o pipefail
 
 # Preserve the calling directory
 _CALLING_DIR="$(pwd)"
@@ -60,16 +60,25 @@ checksum() {
         exit 1
     fi
 
-    echo "$features_arg" | $hash_cmd | awk '{print $1}'
+    feat_sum="$(echo "$features_arg" | $hash_cmd | awk '{print $1}' )"
 
-    find Cargo.toml Cargo.lock native-engine "$cache_libpath" | \
+    files_sum="$(
+        find Cargo.toml Cargo.lock native-engine "$cache_libpath" | \
         xargs $hash_cmd 2>&1 | \
         sort -k1 | \
         $hash_cmd | awk '{print $1}'
+    )"
+
+    printf "%s%s" "$feat_sum" "$files_sum" | $hash_cmd | awk '{print $1}'
 }
 
 if [ -f "$cache_libpath" ]; then
-  old_checksum="$(cat "$cache_checksum_file" 2>&1 || true)"
+  if [ -f "$cache_checksum_file" ]; then
+    old_checksum="$(cat "$cache_checksum_file")"
+  else
+    old_checksum="No checksum file found."
+  fi
+
   new_checksum="$(checksum)"
 
   echo -e "old build-checksum: \n$old_checksum\n========"

Reply via email to