mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 22:50:32 +00:00
Improve version output for cargo-zigbuild/deepsource
This commit is contained in:
6
main.sh
6
main.sh
@@ -787,12 +787,16 @@ for tool in "${tools[@]}"; do
|
|||||||
case "${tool_bin_stem}" in
|
case "${tool_bin_stem}" in
|
||||||
# biome up to 1.2.2 exits with 1 on both --version and --help flags.
|
# biome up to 1.2.2 exits with 1 on both --version and --help flags.
|
||||||
# cargo-machete up to 0.6.0 does not support --version flag.
|
# cargo-machete up to 0.6.0 does not support --version flag.
|
||||||
# wait-for-them 0.4.0 exits with 1 on both --version and --help flags.
|
# wait-for-them up to 0.4.0 does not support --version flag.
|
||||||
biome | cargo-machete | wait-for-them) rx "${tool_bin_stem}" --version || true ;;
|
biome | cargo-machete | wait-for-them) rx "${tool_bin_stem}" --version || true ;;
|
||||||
# these packages support neither --version nor --help flag.
|
# these packages support neither --version nor --help flag.
|
||||||
cargo-careful | wasm-bindgen-test-runner) ;;
|
cargo-careful | wasm-bindgen-test-runner) ;;
|
||||||
# wasm2es6js does not support --version flag and --help flag doesn't contains version info.
|
# wasm2es6js does not support --version flag and --help flag doesn't contains version info.
|
||||||
wasm2es6js) ;;
|
wasm2es6js) ;;
|
||||||
|
# cargo-zigbuild has no --version flag on `cargo zigbuild` subcommand.
|
||||||
|
cargo-zigbuild) rx "${tool_bin_stem}" --version ;;
|
||||||
|
# deepsource has version command instead of --version flag.
|
||||||
|
deepsource) rx "${tool_bin_stem}" version ;;
|
||||||
cargo-*)
|
cargo-*)
|
||||||
case "${tool_bin_stem}" in
|
case "${tool_bin_stem}" in
|
||||||
# cargo-valgrind 2.1.0's --version flag just calls cargo's --version flag
|
# cargo-valgrind 2.1.0's --version flag just calls cargo's --version flag
|
||||||
|
|||||||
Reference in New Issue
Block a user