asdf icon indicating copy to clipboard operation
asdf copied to clipboard

Check version being installed is in `list-all`

Open jthegedus opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Users will install versions not listed in list-all for their tool assuming it will install the latest minor/patch for that tool, when in actual fact it creates an erroneous installation. It is difficult to debug what is happening and what the solution is.

Describe the solution you'd like

asdf install <name> <verison> should validate <version> is a complete match for an item returned by asdf list-all <name>

Describe similar asdf features and why they are not sufficient

NA

Describe workarounds you've considered

NA

Additional context

This would mean an installation hits the network each time. Caching of the list-all results may mitigate this inconvenience.

This comes up in the core and in plugin repos: related https://github.com/asdf-community/asdf-kubectl/issues/1

jthegedus avatar May 04 '21 00:05 jthegedus