From ea26947c0e3fcfc80cee25ce718d2cfca05a15e6 Mon Sep 17 00:00:00 2001 From: James Hegedus Date: Fri, 30 Dec 2022 07:24:24 +1100 Subject: [PATCH] chore: bump dev deps (#1398) * chore: bump dev deps * chore: fix shellcheck warnings Co-authored-by: Trevor Brown --- .tool-versions | 8 ++++---- lib/commands/command-plugin-test.bash | 2 +- lib/utils.bash | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.tool-versions b/.tool-versions index c38ac57c..93d219a2 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ -bats 1.7.0 -shellcheck 0.8.0 -shfmt 3.5.1 -python 3.10.9 +bats 1.8.2 +shellcheck 0.9.0 +shfmt 3.6.0 +python 3.11.1 diff --git a/lib/commands/command-plugin-test.bash b/lib/commands/command-plugin-test.bash index 4a4bb170..4341e7a2 100644 --- a/lib/commands/command-plugin-test.bash +++ b/lib/commands/command-plugin-test.bash @@ -150,7 +150,7 @@ plugin_test_command() { "$@" exit_code=$? if [ $exit_code != 0 ]; then - fail_test "$* failed with exit code $?" + fail_test "$* failed with exit code $exit_code" fi fi diff --git a/lib/utils.bash b/lib/utils.bash index 21865104..15611283 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -765,7 +765,9 @@ with_shim_executable() { IFS=' ' read -r plugin_name full_version <<<"$selected_version" plugin_path=$(get_plugin_path "$plugin_name") - run_within_env() { + # This function does get invoked, but shellcheck sees it as unused code + # shellcheck disable=SC2317 + function run_within_env() { local path path=$(remove_path_from_path "$PATH" "$(asdf_data_dir)/shims")