-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Make it work on Windows with WSL, MSYS, Cygwin #2391
Conversation
632b42a
to
302cc4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an unexpected and potentially very large feature to add.
i could use more explanation, but also, this will definitely need tests so that windows support isn’t accidentally broken later.
d669c3a
to
68cca1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR sjould also add CI that runs in windows as well (using Github Actions, ideally).
I will try to add a CI with GitHub action to test MSYS, Cygwin and WSL |
bd10ec4
to
7f15005
Compare
I managed to add a CI for WSL and MSYS. |
79fe611
to
2ab05e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm_ensure_posix_path
and nvm_install_binary_extract
both need unit tests.
f43618f
to
6c5456c
Compare
f54b3cd
to
8d21c86
Compare
@nmarghetti did you mean to rebase out everything except the last test? |
I just added this commit to ensure the PR passes (as I am on Windows, I wanted to be sure). |
I will update it again to add Windows test for nvm_is_version_installed. NVM_CONFIG_VALUE="$(cd "$NVM_CONFIG_VALUE" 2>/dev/null && pwd)" instead of NVM_CONFIG_VALUE="$(nvm_ensure_posix_path "$NVM_CONFIG_VALUE")" then it is not needed anymore, but it might still be useful later (not really sure if there are not other places where it needs to convert some Windows path) |
581b82b
to
a25b66a
Compare
I have added a "Cleanup" commit to remove nvm_windows_drive_posix and nvm_ensure_posix_path. |
In the end I squashed it, I still have the code on another branch if needed... |
Sounds great. I’ll likely end up rearranging the commits a bit later anyways :-) |
@ljharb what would prevent it to be integrated ? |
master's been broken for a few weeks; it's fixed now. i'll rebase and take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a big one, thanks.
If it ends up not producing a flood of bug reports from windows users who've tried it, I owe you a beer or five :-)
@ljharb when are you planning to release it? |
When I have time to handle the incoming bug reports. |
No description provided.