-
Notifications
You must be signed in to change notification settings - Fork 81
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
Windows support #32
Comments
Hello @kmalakoff, This orb in its current state would not work on Windows, unless perhaps you were looking to install Node in the WSL portion of Windows. This orb in its current form expects that it will be running in a terminal shell (not powershell), which allows it to work on MacOS and Linux. We could implement a windows specific node orb or Windows versions of the commands in this orb. This is an incredibly cool and efficient config setup you have here however, I would love to get to the point of supporting this. In this configuration, is not node attempting to install itself on the node docker image too? Between Linux and Mac I think the configuration you have will work, I am not sure if it will be possible to get something As simple when windows is involved, we may at minimum need to separate those jobs with separate commands. |
I believe the new advanced conditionals may allow us to bake in Windows support automatically now. Looking into this. https://discuss.circleci.com/t/advanced-logic-in-config/36011 |
Thank you for the updates Kyle. I spent some time going down the rabbit hole of running Node.js in a cross-platform way (nave, nvm, nvm-windows, etc) and decided to write cross-platform scripts directly in JavaScript given your base images come pre-installed with Node.js. I released a couple of modules:
$ nri [version string]
$ nvu [version string] [command and arguments] If you can assume Node.js is already installed in the base image, it might be easier to write in JavaScript. |
so, this doesn't work? :(
|
I may be missing something here, but could one set a variable to the default shell option on Linux and MacOS, but |
this is particularly unfortunate since the example is actually part of the official documentation. |
node orb compatibility see CircleCI-Public/node-orb#32
node orb compatibility see CircleCI-Public/node-orb#32
Hi All! We're reevaluating this and are looking for some more specific use cases regarding using this orb with windows. I might expect the installation command to be replaced with something like chocolately. As @Kurt-von-Laven said, it's more about a interoperability problem with orbs that we feel may be necessary to be focused on before implementing a patch solution for this orb specifically. |
We no longer use CircleCI, so I'm not sure how helpful my input is to you, but one reason I could think of might be to run a static analysis tool like cspell or jscpd that ships as an npm package. We use MegaLinter instead, but I know some projects may prefer a lighter-weight approach of installing only one or a few linters manually. |
Wanted to double check to ensure that this issue is still valid, and after some testing I found that Windows works perfectly fine with the Node orb as long as the executor's shell is set to bash :) Closing out! |
Orb version
2.0.3
What happened
Version check fails on windows
Expected behavior
Script should work on all platforms including windows
This line fails on windows when trying to produce a cross-platform matrix script.
Here's my config (adapted from one of the CircleCI blogposts):
Error messages:
I'm not sure if I'm doing this wrong or if I have unrealistic expectations! Let me know!
The text was updated successfully, but these errors were encountered: