Merge pull request #600 from asdf-vm/plugin-test-use-latest

Make `asdf plugin test` determine plugin version with `asdf latest`
This commit is contained in:
Victor Borja 2019-11-26 22:35:27 -06:00 committed by GitHub
commit 832a868a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,11 @@
Features
* Make `asdf plugin test` use the new `asdf latest` command. (#541)
If a plugin version is not given explicitly, we use `asdf latest` to
obtain the version of plugin to install for testing.
* `asdf --version` displays git revision when asdf_dir is a git clone.
This will allow better bug reports since people can now include the

View File

@ -101,7 +101,7 @@ plugin_test_command() {
if [ -n "$tool_version" ]; then
version="$tool_version"
else
version=${versions[${#versions[@]} - 1]}
version="$(asdf latest "$plugin_name")"
fi
if ! (asdf install "$plugin_name" "$version"); then