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

[BUG]: .tool-versions not working in Nushell #420

Open
colececil opened this issue Feb 27, 2025 · 1 comment
Open

[BUG]: .tool-versions not working in Nushell #420

colececil opened this issue Feb 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@colececil
Copy link
Contributor

Version
0.6.1 (The issue also occurs with the latest commit in main, which is currently b37444af0f.)
OS
Windows

Describe the bug
In Nushell, vfox does not respect .tool-versions files. It just acts as if they aren't there.

Example
In this example, I have my global Node.js version set to 22.12.0. The ~ directory contains no .tool-versions file. In the ~/test directory, I have a .tool-versions file that contains the line nodejs 20.18.3.

Here's what happens in Nushell:

~> node --version
v22.12.0
~> cd `test\`
~\test> open .tool-versions
nodejs 20.18.3
~\test> node --version
v22.12.0

And here's what happens in Git Bash on the same machine:

~$ node --version
v22.12.0
~$ cd test/
~/test$ cat .tool-versions
nodejs 20.18.3
~/test$ node --version
v20.18.3
@colececil colececil added the bug Something isn't working label Feb 27, 2025
@colececil
Copy link
Contributor Author

colececil commented Feb 27, 2025

@bytemain, I just opened this issue for the problem I brought up in #412 the other day. I'm not sure if maybe this has something to do with Nushell using the --full option with vfox env -s, whereas the other shells don't?

As far as I can tell, this is the last remaining issue before we have vfox fully working in Nushell! 🤞 We're almost there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant