-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversation
The `rename()` step causes issues on Windows related to anti-virus software (i.e. Windows Defender). It's essentially the same issue as: expo/create-react-native-app#191
We can't assume that `bash` is present on Windows.
`SIGSTOP`/`SIGCONT` is not supported on Windows
For some reason, on Windows if the file already exists then Node.js exits without printing anything…
const bootstrap = join(runtime.cacheDir, 'bootstrap'); | ||
const bootstrap = join( | ||
runtime.cacheDir, | ||
isWin ? 'bootstrap.js' : 'bootstrap' |
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.
Why not always use bootstrap.js
? Why is Windows different here?
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 so bizarre that it would definitely warrant a comment
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.
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.
Is Windows CI working? |
PATH
env var delimiter for Windows (;
vs.:
)bootstrap.js
files using Node because we can't rely onsh
being availablenodejs
-related runtimes are working at the moment, hence initial Windows support