From 17e3e0471f94c7fa8cb170bc47386287493a6eba Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Wed, 22 Apr 2026 11:03:15 -0400 Subject: [PATCH] Make j2cl-box2d build more reproducible - Use https instead of ssh for clone - Checkout a specific revision Fixes #303 --- wasm/j2cl-box2d/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wasm/j2cl-box2d/build.sh b/wasm/j2cl-box2d/build.sh index 36d04957..61cc3360 100755 --- a/wasm/j2cl-box2d/build.sh +++ b/wasm/j2cl-box2d/build.sh @@ -1,5 +1,5 @@ #!/bin/bash - +J2CL_REV=fbbe1e6db2928179f5e747ae382266beb3d2db38 set -eo pipefail # Cleanup old files. @@ -10,8 +10,9 @@ BUILD_LOG="$(realpath build.log)" echo -e "Built on $(date --rfc-3339=seconds)" | tee "$BUILD_LOG" # Build the benchmark from source. -git clone git@github.com:google/j2cl.git |& tee -a "$BUILD_LOG" +git clone https://github.com/google/j2cl.git |& tee -a "$BUILD_LOG" pushd j2cl/ +git checkout $J2CL_REV git log -1 --oneline | tee -a "$BUILD_LOG" git apply ../add-fixed-run-count-api.patch | tee -a "$BUILD_LOG" BUILD_SRC_DIR="benchmarking/java/com/google/j2cl/benchmarks/octane/"