Skip to content

Conversation

@egriff89
Copy link

@egriff89 egriff89 commented Feb 3, 2025

asdf was recently updated to 0.16 and includes a multitude of breaking changes, some of which include the removal of hyphenated commands. This fixes the export_plugins() function to use asdf plugin list instead of asdf plugin-list to restore the intended functionality instead of the broken help text shown below.

Before:

$ asdf-plugin-manager.sh export
version:     0.16.0-arch                      
MANAGE       PLUGINS                          
asdf         plugin                           <name>
add          Git                              
specifying   name                             
asdf         plugin                           [--urls]
git          and                              
asdf         plugin                           all
repository   URLs                             
asdf         plugin                           <name>
asdf         plugin                           <name>
default      or                               
asdf         plugin                           --all
default                                       
MANAGE       TOOLS                            
asdf         current                          current
used         all                              
asdf         current                          Display
used         package                          
asdf         help                             [<version>]
asdf         install                          all
in           .tool-versions                   
asdf         install                          Install
specified    the                              
asdf         install                          <version>
asdf         install                          latest[:<version>]
package,     with                             
install      latest                           
begins       the                              
asdf         latest                           [<version>]
asdf         latest                           Show
packages     if                               
asdf         list                             [version]
optionally   the                              
asdf         list                             <name>
optionally   the                              
asdf         set                              [-p]
the          directory,                       
directory.                                    
asdf         uninstall                        <version>
asdf         where                            [<version>]
or           version                          
asdf         which                            Display
UTILS                                         
asdf         exec                             [args...]
asdf         env                              [util]
environment  for                              
asdf         info                             OS,
asdf         version                          the
asdf         reshim                           <version>
asdf         shim-versions                    List
provide      command                          
RESOURCES                                     
GitHub:      https://github.com/asdf-vm/asdf  
Docs:        https://asdf-vm.com              
PLUGIN       direnv                           
asdf         _asdf_cached_envrc.bash          
asdf         envrc.bash                       
asdf         hook-asdf.bash                   
asdf         install.bash                     
asdf         local.bash                       
asdf         setup.bash                       
asdf         shell.bash                       
"Late        but                              
--           Rajinikanth 

After:

$ asdf-plugin-manager.sh export
direnv               https://github.com/asdf-community/asdf-direnv.git          951acd38bf9aa2258a00a5d87cc9d971fd344a60
pipx                 https://github.com/yozachar/asdf-pipx.git                  31db61862805766b456e8920c635c19872ac87a7

@egriff89 egriff89 requested a review from a team as a code owner February 3, 2025 21:36
Copy link
Collaborator

@aabouzaid aabouzaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@egriff89 LGTM, but could you please add versions matrix in the readme file to show which version of asdf plugin manager works with witch version of asdf.

@egriff89
Copy link
Author

@aabouzaid I've updated the readme.

@d3m3vilurr
Copy link

@aabouzaid gentle ping. when merge this pr?

@exigentix-dev
Copy link

@aabouzaid You really should merge this. Everything's been done for you. The community is waiting.

@aabouzaid aabouzaid added documentation Improvements or additions to documentation enhancement New feature or request labels May 30, 2025
@aabouzaid
Copy link
Collaborator

Thanks for the heads up, I will merge and release today 👍

@aabouzaid aabouzaid changed the title refactor: update export_plugins() to work with asdf v0.16 refactor: update for compatibility with asdf v0.16 May 30, 2025
@aabouzaid aabouzaid merged commit c279829 into asdf-community:main May 30, 2025
6 checks passed
Copy link
Collaborator

@aabouzaid aabouzaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, asdf plugin list is supported in old Asdf versions as well, but we added a compatibility matrix for completeness.

This was referenced May 30, 2025
@aabouzaid
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

4 participants