-
-
Notifications
You must be signed in to change notification settings - Fork 743
fix(plugins/nvm): Correctly handle .nvmrc in a parent directory.
#672
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
Conversation
|
I'll check this PR again later. |
|
I doubt I'm not sure if I added changes in 4098fed. |
When checking the version in the resolved `.nvmrc` file found, the change made in d2163a6 tried to read the file a second time, but did not use the resolved `$nvm_path` but rather tried to simply read it from the current directory. This fails if the file was resolved to a parent directory. This change updates the code to reuse the version value which was read from the file two lines prior.
|
Thanks! |
When checking the version in the resolved
.nvmrcfile found, thechange made in d2163a6 tried to read the file a second time, but did not
use the resolved
$nvm_pathbut rather tried to simply read it from thecurrent directory. This fails if the file was resolved to a parent
directory.
This change updates the code to reuse the version value which was read
from the file two lines prior.