File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ features_flag := '--all-features'
99ci_mode := if env (' CI' , ' ' ) != ' ' {' 1' } else {' ' }
1010# cargo-binstall needs a workaround due to caching
1111# ci_mode might be manually set by user, so re-check the env var
12- binstall_args := if env (' CI' , ' ' ) != ' ' {' --no-track --disable-telemetry' } else {' ' }
12+ binstall_args := if env (' CI' , ' ' ) != ' ' {' --no-confirm --no- track --disable-telemetry' } else {' ' }
1313export RUSTFLAGS := env (' RUSTFLAGS' , if ci_mode == ' 1' {' -D warnings' } else {' ' })
1414export RUSTDOCFLAGS := env (' RUSTDOCFLAGS' , if ci_mode == ' 1' {' -D warnings' } else {' ' })
1515export RUST_BACKTRACE := env (' RUST_BACKTRACE' , if ci_mode == ' 1' {' 1' } else {' ' })
@@ -160,11 +160,14 @@ cargo-install $COMMAND $INSTALL_CMD='' *args='':
160160 #!/usr/bin/env bash
161161 set -euo pipefail
162162 if ! command -v $COMMAND > / dev/ null; then
163+ echo " $COMMAND could not be found. Installing..."
163164 if ! command -v cargo-binstall > / dev/ null; then
164- echo " $COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} --locked {{ args }} "
165+ set -x
165166 cargo install ${INSTALL_CMD:-$COMMAND} --locked {{ args}}
167+ { set + x; } 2 >/ dev/ null
166168 else
167- echo " $COMMAND could not be found. Installing it with cargo binstall ${INSTALL_CMD:-$COMMAND} {{ binstall_args }} --locked {{ args }} "
169+ set -x
168170 cargo binstall ${INSTALL_CMD:-$COMMAND} {{ binstall_args}} --locked {{ args}}
171+ { set + x; } 2 >/ dev/ null
169172 fi
170173 fi
You can’t perform that action at this time.
0 commit comments