asdf icon indicating copy to clipboard operation
asdf copied to clipboard

asdf should auto install plugins for tool names it has in the short name repo

Open airtonix opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe

it would be nice if i didn't have to keep this kind of thing around in every asdf repo to quickly help my team mates onboard: https://raw.githubusercontent.com/airtonix/bankdownloader/master/setup.sh

Describe the proposed solution

if a .tool-version file looks like :

nodejs 18.0.0

then asdf install should:

  • check if nodejs plugin is not installed
    • then it should attempt asdf plugin add nodejs
  • then proceed as normal

Describe similar asdf features and why they are not sufficient

the above script

Describe other workarounds you've considered

giving up technology and becoming a goat herder.

airtonix avatar Nov 10 '23 08:11 airtonix

+1 on this, it's annoying to have to manually add every plugin. I'd love a flag on asdf install to say "add any uninstalled plugin required".

I'd actually go one further and say .tool-version should support adding the repo for non-shortname plugins so you wouldn't need to run asdf plugin add ... at all. Something like this:

temporal 0.10.7 https://github.com/asdf-community/asdf-temporal

ethanjdiamond avatar Nov 24 '23 05:11 ethanjdiamond

+1 on extending .tool-versions to support long names for plugins. That'd be extremely helpful for constructing a reproducible environment.

ben-509 avatar Jan 06 '24 00:01 ben-509

just use rtx. It has all of this.

lilbobbytable avatar Jan 07 '24 18:01 lilbobbytable