This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support up to Electron 8 #2862
Support up to Electron 8 #2862
Changes from 36 commits
f57f4b4
9c5aeb6
7f5b6bf
90e697d
e6b1a43
0661d3b
92b7ef0
1760a4c
ed1c343
97a903b
2bc2261
5fe05fa
80a5070
7368214
f3aaea6
18687aa
499e066
9642e7b
d95fc8a
9d01660
69ddf4c
2cc27f0
480890d
72ed801
138d277
165f68a
2eb370e
ed333ad
4da3d46
17cfbc0
a1db6da
818b048
9faff00
23927c8
7c35440
f1bdcea
78048c9
2e93037
c65aa3c
403a152
a7543a1
96f12b6
3e7526a
45801f7
99a6b2f
0ec38a7
d8bda5a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What the pre-existing failures?
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.
If you see this run
https://github.com/glenn2223/node-sass/runs/514109989?check_suite_focus=true#step:9:11601
I'll add the data from a local run tomorrow (in GMT here) as I think the error was different on that
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.
OK, the other issue I could think that it's running into is that the
npm test
is still using the regular system NodeJS version to execute, but the binding is setup for an electron environment. Not familiar with how to properly test Electron, but is there something likeexport NODE=electron_binary
, similar to what python tests do withexport PYTHON=python3
for making sure a particular version is used.If it really is a CLI issue with Electron, but Electron won't use the test, maybe there is a way to just skip the test on Electron, but run the rest.
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.
The above is the result when I run
npm test
on the original repository (no changes)Have it open in VSCode Winx62, using vendor node from win32-x64-79 (I have Node 13.10.1)
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.
TBH, I don't know why I'm running
npm test
as we can't test it in that environment (unless I missed something)The test is running on the system Node but still using the binary it downloaded from GitHub to test. This is because running
electron-rebuild
places the electron binary in thebin
&build/Release
folders, completely separate from where the current binary is (obv).I tried (even though I knew the result) to replace the binary in the
vendor
folder and see what would happen; you guessed it, I got the below error: (essentially trying to run Electron 8 on Node 13)I think we should drop the
npm test
as the binary it is rebuilding off must be functional otherwise it wouldn't be accessible in a public release (or at least that's what we all hope 😅)Do you agree?