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

--silent-if-unchanged ignored if using an alias in .nvmrc #1319

Open
gracepetryk opened this issue Nov 12, 2024 · 0 comments
Open

--silent-if-unchanged ignored if using an alias in .nvmrc #1319

gracepetryk opened this issue Nov 12, 2024 · 0 comments

Comments

@gracepetryk
Copy link

gracepetryk commented Nov 12, 2024

fnm version: 1.37.2
shell: zsh
OS: MacOS Sonoma 14.7.1

It looks like the --silient-if-unchanged flag is ignored if the .nvmrc file contains an alias instead of a literal node version.

~ 
GPetryk@gpetryk $ fnm use
Using Node for alias default

~ 
GPetryk@gpetryk $ fnm use --silent-if-unchanged
Using Node for alias default

~ 
GPetryk@gpetryk $ cat ~/.nvmrc
default
~ 
GPetryk@gpetryk $ echo v23.2.0 >! .nvmrc


~ 
GPetryk@gpetryk $ fnm use
Using Node v23.2.0

~ 
GPetryk@gpetryk $ fnm use --silent-if-unchanged

~ 
GPetryk@gpetryk $ cat .nvmrc
v23.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant