bug: when asdf install
fails, running it again says tool is already installed
#2053
Labels
asdf install
fails, running it again says tool is already installed
#2053
Describe the Bug
When
asdf install <tool> <version>
fails, I should be able to runasdf install <tool> <version>
again, but it will say:version <version> of <tool> is already installed
Steps to Reproduce
Expected Behaviour
If an install fails, then it should not report that it's already installed, as that's not true. It requires me to run
asdf uninstall <tool> <version>
first.This is most often an issue when there's a network failure, or for private tools, not being authenticated to github (as an example).
Actual Behaviour
running
asdf install <tool> <version>
a second time incorrectly reports that the tool is already installed.Environment
asdf info OS: Darwin CW-D4JV9MFX9R-L 24.4.0 Darwin Kernel Version 24.4.0: Wed Mar 19 21:17:32 PDT 2025; root:xnu-11417.101.15~1/RELEASE_ARM64_T6030 arm64 arm Darwin SHELL: zsh 5.9 (arm64-apple-darwin24.0) BASH VERSION: 5.2.37(1)-release ASDF VERSION: 0.16.4
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered: