Closed
Description
Describe the Bug
I use asdf to manage only a few things: node, pnpm, ruby, and terraform
=> asdf list
nodejs
20.12.2
20.15.0
20.15.1
20.18.0
*22.12.0
pnpm
9.15.0
ruby
3.3.1
3.3.3
3.3.4
3.3.5
3.3.6
*3.4.1
terraform
1.8.5
1.9.7
However, asdf is trying to shim a bunch of other stuff that I never asked it to manage:
shims|⇒
⇒ ls
annotate database_consistency ldiff parallel_test rackup ruby-lsp-check tilt
annotaterb dotenv node patience_diff rails ruby-lsp-launcher typeprof
bootsnap erb nokogiri pnpm rake ruby-parse vernier
brakeman gem npm pnpm.cjs rbs ruby-rewrite vite
bundle graphite npx pnpx rdbg setup yarn
bundler gt packs pnpx.cjs rdoc sprockets yarnpkg
chusaku htmldiff packwerk posthog ri stripe-console
codeownership irb pagy publish rspec superblocks
console jmespath.rb parallel_cucumber puma rubocop syntax_suggest
corepack kramdown parallel_rspec pumactl ruby terraform
danger launchy parallel_spinach racc ruby-lsp thor
And now whenever I try to run some of these other executables, like gt
for instance, I get errors like:
⇒ which gt
/Users/ryan/.asdf/shims/gt
⇒ gt
No version is set for command gt
Consider adding one of the following versions in your config file at /Users/ryan/Dev/infra/accounts/staging/.tool-versions
nodejs 20.15.1%
I don't really understand how or why asdf is trying to manage these shims for me. gt
is installed via homebrew.
Steps to Reproduce
asdf reshim
gt
Expected Behaviour
asdf does not try to shim packages it does not manage. Or at the very least, I expect that the shims it creates work properly.
Actual Behaviour
Errors when running packages shimmed by asdf that are actually managed elsewhere
Environment
⇒ asdf info
OS:
Darwin MacBook-Pro---ryan-Aboon.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:24 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6030 arm64
SHELL:
zsh 5.9 (arm64-apple-darwin24.0)
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
0.16.2
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/ryan/.asdf
ASDF_CONFIG_FILE=/Users/ryan/.asdfrc
ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git c5b7c40ea9ffc3470f44b6cf04a21e45dd6f81de
pnpm https://github.com/jonathanmorley/asdf-pnpm.git 85221d309c0b8eaf029631b9c61786d15ecf897b
ruby https://github.com/asdf-vm/asdf-ruby.git 98e32b9c38e146b164d651c96ccb6d5fa4c3af90
terraform https://github.com/asdf-community/asdf-hashicorp.git f1602b610105c6848c79eb95f2a833ecb48a973e
asdf plugins affected (if relevant)
No response