bug: [0.16] when cd /
on unix, it doesn't resolve versions correctly
#1878
Labels
cd /
on unix, it doesn't resolve versions correctly
#1878
Describe the Bug
This prevents editors like VScode to resolve versions of installed compilers/interpreters, e.g. vscode-python probably tries to resolve python version from the root FS context (
/
):Steps to Reproduce
As seen in issue.
Expected Behaviour
asdf should've resolved it from current user's home, eg. from $USER variable
❯ echo $USER
dmytro.soltysiuk.-nd
asdf could use this variable to understand the location of current "global" asdf versions file
Actual Behaviour
Is not able to resolve version for the binary.
Environment
❯ asdf info OS: Darwin MN6P92HJN4 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:50:00 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T6031 arm64 arm Darwin SHELL: zsh 5.9 (x86_64-apple-darwin23.0) BASH VERSION: 5.2.37(1)-release ASDF VERSION: v0.16.0 ASDF INTERNAL VARIABLES: ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions ASDF_DATA_DIR=/Users/dmytro.soltysiuk.-nd/.asdf ASDF_CONFIG_FILE=/Users/dmytro.soltysiuk.-nd/.asdfrc ASDF INSTALLED PLUGINS: java https://github.com/halcyon/asdf-java.git 7c7ce22c2dc1ce084aa23d6aec60698e73dc9046 nodejs https://github.com/asdf-vm/asdf-nodejs.git 93bd217ba74f05080eebb7d8e1c146a385b01d7f python https://github.com/danhper/asdf-python.git a3a01856098d6d2b9642e382f5b38e70275726d1
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered: