bug: asdf fails to indicate command failure due to .tool-versions referencing not-installed command version
Author: ralliasCreated Sep 21, 2026Updated Sep 22, 2026
Labelsbug
Describe the Bug
ASDF doesn't indicate that, when a local .tool-versions specifies, say, helm 4.1.1, that the reason the command failed because the version specified in the .tool-versions file is not present on my system.
Steps to Reproduce
- Run helm command.
cwatson@kitusdcapc5xk5 git main ~/tasks/<CENSORED>/helm-<CENSORED>$ helm output No version is set for command helm Consider adding one of the following versions in your config file at /home/cwatson/tasks/<CENSORED>/helm-<CENSORED>/.tool-versions helm 3.21.4 helm 3.14.0 - Attempt to set asdf version globally.
cwatson@kitusdcapc5xk5 git main ~/tasks/<CENSORED>/helm-<CENSORED> $ asdf set -u helm 3.21.4 - Observe same failure mode.
cwatson@kitusdcapc5xk5 git main ~/tasks/<CENSORED>/helm-<CENSORED> $ helm output No version is set for command helm Consider adding one of the following versions in your config file at /home/cwatson/tasks/<CENSORED>/helm-<CENSORED>/.tool-versions helm 3.21.4 helm 3.14.0 - After banging head against wall, discover
asdf currentcommand.cwatson@kitusdcapc5xk5 git main ~/tasks/<CENSORED>/helm-<CENSORED>/helm-citadel $ asdf current Name Version Source Installed helm 4.1.1 /home/cwatson/tasks/<CENSORED>/helm-<CENSORED>/.tool-versions false - Run `asdf install helm 4.1.1` kubectl 1.36.4 /home/cwatson/.tool-versions true terraform 1.12.2 /home/cwatson/tasks/<CENSORED>/helm-<CENSORED>/.tool-versions true terragrunt 0.51.0 /home/cwatson/.tool-versions true tflint 0.50.3 /home/cwatson/.tool-versions true
Expected Behaviour
A failed asdf command due to .tool-versions referencing a version of a piece of software not being installed should indicate such. For example:
/home/cwatson/tasks/<CENSORED>/helm-<CENSORED>/.tool-versions references helm 4.1.1, but helm 4.1.1 is not installed. Run `asdf install helm 4.1.1` to install this version.Actual Behaviour
Inline with steps to reproduce
Environment
cwatson@kitusdcapc5xk5 git main
~/tasks/<CENSORED>/helm-<CENSORED> $ asdf info
OS:
Linux kitusdcapc5xk5 6.18.33.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026 x86_64 GNU/Linux
SHELL:
zsh 5.9 (x86_64-redhat-linux-gnu)
BASH VERSION:
5.3.0(1)-release
ASDF VERSION:
v0.20.0 (revision 150aaf0)
ASDF INTERNAL VARIABLES:
ASDF_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/cwatson/.asdf
ASDF_CONFIG_FILE=/home/cwatson/.asdfrc
ASDF INSTALLED PLUGINS:
helm https://github.com/Antiarchitect/asdf-helm.git 3a6dcbba19ca2a7c4bd7c43eb0e2a35736e6bce7
kubectl https://github.com/asdf-community/asdf-kubectl.git 95b2e20e381b10dba52b4f66bea94fa2ee083f43
terraform https://github.com/asdf-community/asdf-hashicorp.git d2557f97752761eecb50f63cd31b64c236d23089
terragrunt https://github.com/gruntwork-io/asdf-terragrunt.git f669531c272869e2182780353b831d780f6fbc5a
tflint https://github.com/skyzyx/asdf-tflint.git 37e7eb9b758bbe77319ee312fc3764ef9d0944aaasdf plugins affected (if relevant)
helm?
Source: asdf-vm/asdf