-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: asdf is shimming things it does not manage, and then erroring when trying to run them #1955
Comments
Encountering this too. This should have gone through more QA before being released. This is interrupting my workflow and delaying demonstrations that I am doing on my machine 😠 |
@rynonl did you install any version of |
No, that's exactly the issue. I installed
|
I'm running into a similar issue. Not sure if it's the same thing, but asdf is shimming ruby gems that I have in local folders on my machine with soft links into my |
@rynonl what do you get when you run |
The shim file at
Also, to be clear here - the issue is that asdf is trying to shim gt at all. It just should not be shimming gt, or anything else that asdf doesn't actively manage. I have gt installed and managed via homebrew. |
This message indicates that asdf has a located a asdf creates shims for everything on your system that it versions. If you use it to juggle node versions, and then install a npm package that provides it's own binary, that binary will be managed by asdf. Typically when users report shims for tools not managed by asdf it's because Related issues: |
That worked after a reshim. However, I do not want asdf to manage the gt install. I want to continue managing that via homebrew. Where is asdf looking for binaries in my node install? gt is not an included binary with a vanilla node installation that I am aware of. |
|
Closing as I haven't seen any evidence here that this actually a problem. If you've got a command that asdf is managing and you don't think it should, run |
Describe the Bug
I use asdf to manage only a few things: node, pnpm, ruby, and terraform
However, asdf is trying to shim a bunch of other stuff that I never asked it to manage:
And now whenever I try to run some of these other executables, like
gt
for instance, I get errors like: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
The text was updated successfully, but these errors were encountered: