asdf/test
Alberto de Murga 9430a39aef
feat: Displays a warning when a plugin from the tools-version list does not exist (#1033)
* feat: Displays a warning when the plugin from the tools-version does not exist

When calling the install command, it tried to look for versions for all
the plugins available and installed them. With this change, it will attempt to
find versions for all the installed plugins and plugins defined in the
`.tool-versions`.

Fixes https://github.com/asdf-vm/asdf/issues/574

* feat: Changes the algorithm to detect not installed plugins

This patch changes the algorithm. It preserves the original logic for
the plugin resolution, but at the same time, reports entries with plugins not
available.

* fix: Addresses the pull request comments.

- Changes the comparison to be strict rather than partial.
- Prints a list of missing plugins.
- Exists if at least one plugin is not present.
- Adds unit tests.
2021-10-01 08:38:57 -04:00
..
fixtures feat: add post update plugin support (#1049) 2021-09-24 08:53:52 +10:00
asdf_fish.bats Update code to use . instead of source 2021-05-21 12:03:06 -04:00
asdf_sh.bats Add test for not adding duplicate paths to PATH 2019-04-06 13:23:30 -04:00
banned_commands.bats Update banned_commands.bats tests to ignore string literals 2021-05-24 17:30:51 -04:00
current_command.bats Update no plugin installed error message (#818) 2020-12-21 11:00:09 +11:00
get_asdf_config_value.bats Run config tests in BATS_TMPDIR for clean environment 2019-12-21 14:22:32 -05:00
help_command.bats feat: plugin documentation callback support 🎉 (#757) 2020-07-31 18:47:18 +10:00
info_command.bats feat: cmd to print debug information (#787) 2020-08-24 10:55:41 +10:00
install_command.bats feat: Displays a warning when a plugin from the tools-version list does not exist (#1033) 2021-10-01 08:38:57 -04:00
latest_command.bats feat: asdf latest defer to plugin to determine the latest version (#938) 2021-07-07 12:51:19 +10:00
list_command.bats fix: support latest with filter on local and global (#633) 2021-07-06 21:17:00 +10:00
plugin_add_command.bats fix: regex validate plugin names on plugin add cmd (#1010) 2021-07-30 08:49:01 +10:00
plugin_extension_command.bats fix: help for extension commands for plugins with hyphens in the name. (#1048) 2021-09-23 14:47:26 -04:00
plugin_list_all_command.bats feat: toggle off repo sync completely (#1011) 2021-08-04 08:41:19 +10:00
plugin_remove_command.bats Remove downloads when removing a plugin 2020-05-14 09:13:51 -04:00
plugin_test_command.bats Faster exec times. Load commands only when nedded. 2019-01-20 02:13:20 -06:00
plugin_update_command.bats feat: add post update plugin support (#1049) 2021-09-24 08:53:52 +10:00
remove_command.bats Rename custom plugin-add/plugin-remove for plugins (#684) 2020-03-22 12:57:54 +11:00
reshim_command.bats fix: ensure shims get created when data dir has spaces (#996) 2021-07-20 14:21:39 +10:00
shim_env_command.bats Add tests for duplicate colon path issue 2019-08-14 19:31:23 -04:00
shim_exec.bats fix: shims break when POSIXLY_CORRECT=1 2021-01-14 13:19:27 +01:00
shim_versions_command.bats Subcommand-aware command line interface. 2019-11-27 12:17:17 -06:00
test_helpers.bash fix: ensure shims get created when data dir has spaces (#996) 2021-07-20 14:21:39 +10:00
uninstall_command.bats feat: support for "latest" in shell, local, and global (#802) 2020-09-19 15:37:52 +10:00
update_command.bats feat: support for "latest" in shell, local, and global (#802) 2020-09-19 15:37:52 +10:00
utils.bats Fix resolution of relative symlinks 2020-10-08 10:17:01 -04:00
version_commands.bats feat: asdf latest defer to plugin to determine the latest version (#938) 2021-07-07 12:51:19 +10:00
where_command.bats fix: _where_ bug when multiple versions are selected (#790) 2020-08-28 19:24:59 +10:00
which_command.bats Merge pull request #623 from jonmast/prevent-exec-recursion 2020-02-14 14:26:03 -06:00