Skip to content
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

How to avoid shims being added to PATH #189

Open
comfortablynick opened this issue Jun 27, 2024 · 1 comment
Open

How to avoid shims being added to PATH #189

comfortablynick opened this issue Jun 27, 2024 · 1 comment

Comments

@comfortablynick
Copy link

It's been a while since I have used asdf-direnv so I'm updating my setup. I've followed the setup instructions and I'm using a system version of direnv:

asdf plugin-add direnv
asdf direnv setup --shell fish --version system

I have use asdf in my $HOME/.envrc file and only the python plugin in addition to direnv. Based on the debug output, I'm guessing the python plugin is putting the shims in PATH? Is there a way to prevent this, or do I have to remove it manually? I don't remember my previous config having this issue, but maybe I never noticed it.

$PATH: set in global scope, exported, a path variable with 18 elements
$PATH[1]: |/Users/nick/.asdf/installs/python/3.12.4/bin|
$PATH[2]: |/Users/nick/.asdf/plugins/python/shims|
+++ get_install_path python version 3.12.4
+++ local plugin=python
+++ local install_type=version
+++ local version=3.12.4
+++ local install_dir
++++ asdf_data_dir
++++ local data_dir
++++ '[' -n /Users/nick/.asdf ']'
++++ data_dir=/Users/nick/.asdf
++++ printf '%s\n' /Users/nick/.asdf
+++ install_dir=/Users/nick/.asdf/installs
+++ '[' -d /Users/nick/.asdf/installs/python ']'
+++ '[' version = version ']'
+++ printf '%s/%s/%s\n' /Users/nick/.asdf/installs python 3.12.4
++ install_path=/Users/nick/.asdf/installs/python/3.12.4
++ '[' '!' -d /Users/nick/.asdf/installs/python/3.12.4 ']'
++ '[' -d /Users/nick/.asdf/plugins/python/shims ']'
++ echo PATH_add /Users/nick/.asdf/plugins/python/shims
@jfly
Copy link
Contributor

jfly commented Jan 11, 2025

You shouldn't be getting shims in your path. Is this something specific to python, or does it happen with all plugins?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants