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

Add initial Windows support #17

Merged
merged 17 commits into from
May 2, 2019
Merged

Add initial Windows support #17

merged 17 commits into from
May 2, 2019

Conversation

TooTallNate
Copy link
Member

  • Fixes PATH env var delimiter for Windows (; vs. :)
  • On Windows, invoke bootstrap.js files using Node because we can't rely on sh being available
  • Only the nodejs-related runtimes are working at the moment, hence initial Windows support
  • Process (un)freezing is not supported on Windows

@TooTallNate TooTallNate added the enhancement New feature or request label May 1, 2019
@TooTallNate TooTallNate requested review from leo and styfle May 1, 2019 23:08
const bootstrap = join(runtime.cacheDir, 'bootstrap');
const bootstrap = join(
runtime.cacheDir,
isWin ? 'bootstrap.js' : 'bootstrap'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not always use bootstrap.js? Why is Windows different here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so bizarre that it would definitely warrant a comment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically there's two implementations of these "bootstrap" logic. Ideally just temporarily, and we use the .js ones for all platforms, but for now running the .js ones on unix was causing tests to fail. So consider this just an in-progress transition to that while we get Windows initially/incrementally working.

@rauchg
Copy link
Member

rauchg commented May 2, 2019

Is Windows CI working?

@TooTallNate
Copy link
Member Author

@rauchg Not yet, but #13 is a start at it. Not all the tests are passing on Windows yet anyways, but I want to get this merged so that we can get @now/node working on now dev at least.

@TooTallNate TooTallNate merged commit 412f90f into master May 2, 2019
@TooTallNate TooTallNate deleted the add/windows-support branch May 2, 2019 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants