diff --git a/util/android-commands.sh b/util/android-commands.sh index b87d7050b0c..63adf0ec422 100755 --- a/util/android-commands.sh +++ b/util/android-commands.sh @@ -534,7 +534,7 @@ snapshot() { # We need to install nextest via cargo currently, since there is no pre-built binary for android x86 # explicitly set CARGO_TARGET_DIR as otherwise a random generated tmp directory is used, # which prevents incremental build for the retries. - command="export CARGO_TERM_COLOR=always && export CARGO_TARGET_DIR=\"cargo_install_target_dir\" && cargo install cargo-nextest" + command="export CARGO_TERM_COLOR=always && export CARGO_TARGET_DIR=\"cargo_install_target_dir\" && cargo install cargo-nextest --locked" run_with_retry 3 run_command_via_ssh "$command" return_code=$?