Closed ljharb closed 2 years ago
Hello, @ljharb We don't have any plans to pre-install WSL environment related to maintenance concern. Could we install nvm on Windows Server without using WSL?
nvm also works in git bash and cygwin; https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md doesn’t mention those but it does mention Bash - it’s only bash if it’s posix compliant, and nvm works in posix shells, so i assumed that “bash” meant that WSL is installed.
a potential alternative to this would be to enhance the NodeTask to support nvmrc files :)
Also potentially relevant is this from the nvm README:
Note:
nvm
also support Windows in some cases. It should work through WSL (Windows Subsystem for Linux) depending on the version of WSL. It should also work with GitBash (MSYS) or Cygwin. Otherwise, for Windows, a few alternatives exist, which are neither supported nor developed by us:
Support of nvmrc files was recently added to setup-node task: https://github.com/actions/setup-node/releases/tag/v2.5.0 We wouldn't like to bake nvm into the images
@maxim-lobanov why not? it’s already baked into the others, and it’s far more capable and powerful than setup-node, which is why I’d prefer to use it.
also, you don’t support .nvmrc files unless you also support every alias nvm does - both custom ones, and also node, iojs, stable, lts/argon etc. do you? (cc @dmitry-shibanov)
ping; i'd still like to hear an answer to the question.
@maxim-lobanov ping?
@maxim-lobanov @shamil-mubarakshin ?
Tool name
nvm
Tool license
MIT
Add or update?
Desired version
v0.39.0
Approximate size
No response
Brief description of tool
nvm is already included on ubuntu-latest and macos-latest. nvm also supports WSL, but it's not included on windows-latest. Could it be added?
(i'm the nvm maintainer)
URL for tool's homepage
https://nvm.sh
Provide a basic test case to validate the tool's functionality.
No response
Virtual environments affected
Can this tool be installed during the build?
Tool installation time in runtime
No response
Are you willing to submit a PR?
Yes, but I'll need some pointers.