-
Notifications
You must be signed in to change notification settings - Fork 861
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
doc: please document "asdf global" replacement - how do i access the installed tools? #2002
Comments
Hi @alexanderankin can you please provide more context here? No, you should not need to define aliases to use asdf-installed tools like helm. If you've configured asdf properly shims should already be on your Try running this to see what is on your path for helm: |
$ type -a helm
-bash: type: helm: not found
$ type asdf
asdf is /opt/homebrew/bin/asdf |
It's way more confusing than before. Why changing something that just works? 🤷♂️ |
@alexanderankin so the shims directory is not on your path. Check step 2 instructions for your shell and make sure you've got code in your shells RC file to add the shims directory to your path. Once you get the shims directory on your path it should work. |
Sounds like you're missing this |
very tricky migration and i did not understand it but it seems to have finally worked after changing this, building from source and putting asdf in my path elsewhere: alexanderankin/dotfiles@812c362 commit 812c362f9bd82298459282b8692bbf66df26456e
Date: Sat Mar 8 11:15:30 2025 -0500
asdf
diff --git a/.bashrc b/.bashrc
index d1cf7d3..e94dbc7 100644
--- a/.bashrc
+++ b/.bashrc
@@ -176,8 +176,18 @@ test -f /usr/bin/terraform && complete -C /usr/bin/terraform terraform
command -v rbenv > /dev/null && eval "$(rbenv init -)"
-[[ -f ~/.asdf/asdf.sh ]] && . ~/.asdf/asdf.sh
-[[ -f ~/.asdf/completions/asdf.bash ]] && . ~/.asdf/completions/asdf.bash
+# asdf was rewritten in go in version 0.16
+command -v asdf > /dev/null && {
+ export ASDF_DATA_DIR=~/.asdf
+ export PATH="$PATH:$ASDF_DATA_DIR/shims"
+} || {
+ alias setup_asdf="git clone https://github.com/asdf-vm/asdf.git ~/.asdf && cd ~/.asdf && make"
+ alias download_asdf="curl -fSsL 'https://api.github.com/repos/asdf-vm/asdf/releases' | jq .[0].assets[].browser_download_url -r"
+}
+
+# previous version of asdf were shell utilities:
+#[[ -f ~/.asdf/asdf.sh ]] && . ~/.asdf/asdf.sh
+#[[ -f ~/.asdf/completions/asdf.bash ]] && . ~/.asdf/completions/asdf.bash
# add Pulumi to the PATH
the unfortunate part of this is that to update asdf i need to go TO my data dir, which i wish i didnt have to do, but oh well. worse would be if the next migration any more confusing. |
ok so shim is on the path and fresh install on new machine leads to "No version is set for command X" followed by lines: "Consider adding one of the following versions in your config file..." |
on a more serious note, is what global was doing was just putting |
That's my understanding of what the replacement to global does. I noticed that in the link to your dotfile, you're setting Also providing us the output of |
Added to my path like so (I use fish)
I am having the issues due to losing the global command. I tried putting a
This is my
Also in my editors (VS Code, Cursor, Windsurf) where I was using my Ruby path and Bundler path broke and no longer works. Settings like this in VS Code:
All of these were working fine before the upgrade. EDIT: |
i had to do a lot of restarting my shell to make sure all the asdf's in it were the real new binary, maybe try fully uninstalling and installing by curl -fSsL 'https://api.github.com/repos/asdf-vm/asdf/releases' | jq .[0].assets[].browser_download_url -r
from what i can tell |
the above command is part of my standard asdf setup on new computers: command -v asdf > /dev/null && {
export ASDF_DATA_DIR=~/.asdf
export PATH="$PATH:$ASDF_DATA_DIR/shims"
} || {
alias setup_asdf="git clone https://github.com/asdf-vm/asdf.git ~/.asdf && cd ~/.asdf && make" # i don't actually use this
alias download_asdf="curl -fSsL 'https://api.github.com/repos/asdf-vm/asdf/releases' | jq .[0].assets[].browser_download_url -r"
} |
I think my Ruby install somehow broke with the asdf upgrade and I was affected by this: |
How can we improve the documentation?
I used to use global a lot. Now i suppose I must litter my aliases file with things like this?
please help!
The text was updated successfully, but these errors were encountered: