You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asdf supports creating a .tool-versions in some directory. These versions are used in this directory and all sub-directories (see)
1. Your usage scenarios?
create following structure
test
- .tool-versions => nodejs 21.x
- foo
- - .tool-versions => nodejs 22.x
- bar
- - no tool-versions
If I access ~/test/bar I always want to have Node Versoin 21.x active. At the moment the previous node version is active
2. What is your expected outcome?
The idea is that I can automatically activate the respective version for certain folder structures without having to actively maintain this in each directory.
The text was updated successfully, but these errors were encountered:
Relatedly, when no .tools-version is present in the parent directory hierarchy:
test-parent
- test
- .tool-versions => nodejs 21.x
When in test one expects, nodejs 21.x, but when in test-parent one expects node to be missing, but instead it depends on how you've traversed the directories.
So for example, the output of these commands in a new shell is not consist in the test-parent directory:
cd test-parent
node --version
cd test
node --version
cd ..
node --version
The output is:
shell: node not found
nodejs 21.x
nodejs 21.x
Expecting:
shell: node not found
nodejs 21.x
shell: node not found
if you have a .tool-version in your project (project/.tool-versions), that version will be used in the current shell, regardless of whether you switch directories or not, the version is not changed until the next .tool-versions file is encountered, or vfox use command is executed manually.
Given the need for real users who want this feature, I'm considering aligning vfox to behave as described in the current issue. ;)
asdf supports creating a .tool-versions in some directory. These versions are used in this directory and all sub-directories (see)
1. Your usage scenarios?
create following structure
If I access
~/test/bar
I always want to have Node Versoin 21.x active. At the moment the previous node version is active2. What is your expected outcome?
The idea is that I can automatically activate the respective version for certain folder structures without having to actively maintain this in each directory.
The text was updated successfully, but these errors were encountered: