Skip to content

Commit c279829

Browse files
author
Eric Griffith
authored
refactor: update for compatibility with asdf v0.16 (#71)
Technically, `asdf plugin list` is supported in old asdf versions as well, but we added a compatibility matrix for completeness.
1 parent 00ba8ab commit c279829

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ ASDF Plugin Manager allows you to pin `asdf` plugin info like Git URL and ref fo
2727
- [Overview](#overview)
2828
- [Why?](#why)
2929
- [Dependencies](#dependencies)
30+
- [Compatibility](#compatibility)
3031
- [Install](#install)
3132
- [Example](#example)
3233
- [Parameters](#parameters)
@@ -49,6 +50,15 @@ Hence, `asdf-plugin-manager` fills the gap to manage asdf plugins securely and d
4950
- `ASDF_PLUGIN_MANAGER_PLUGIN_VERSIONS_FILENAME`: Set the default name for the file with the list of managed plugins.
5051
Default: `.plugin-versions`.
5152

53+
# Compatibility
54+
55+
Since the release of ASDF `v0.16.0` there have been a number of [breaking changes](https://asdf-vm.com/guide/upgrading-to-v0-16.html) as it was [completely rewritten](https://github.com/asdf-vm/asdf/releases/tag/v0.16.0). Use the table below to determine which version of `asdf-plugin-manager` to use.
56+
57+
| ASDF Version | Compatible Plugin Manager Version |
58+
|------------------------|-----------------------------------|
59+
| v0.15.0 (or older) | v1.4.0 (or older) |
60+
| v0.16.0 (or newer) | v1.5.0 (or newer) |
61+
5262
# Install
5363

5464
> **Note**

cli/asdf-plugin-manager.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ print_git_compare_url() {
7171
}
7272

7373
export_plugins() {
74-
asdf plugin-list --refs --urls | tr -s ' ' | cut -d ' ' -f 1,2,4 | column -t
74+
asdf plugin list --refs --urls | tr -s ' ' | cut -d ' ' -f 1,2,4 | column -t
7575
}
7676

7777
# Mimic 'asdf plugin update' to avoid "fatal: couldn't find remote ref ...".

0 commit comments

Comments
 (0)