-
Notifications
You must be signed in to change notification settings - Fork 17.3k
fix/deps: min versions of electron-chromedriver... #23575
Conversation
... and electron-snapshot to the current electron version (v11)
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.
Alternative design using semver.lt (less than)
| } | ||
|
|
||
| if (!semver.satisfies(chromedriverActualVer, '>=9.0.0')) { | ||
| if (!semver.satisfies(chromedriverActualVer, `>=${majorElectronVersion}`)) { |
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 (!semver.satisfies(chromedriverActualVer, `>=${majorElectronVersion}`)) { | |
| if (semver.lt(chromedriverActualVer, majorElectronVersion)) { |
| } | ||
|
|
||
| if (!semver.satisfies(mksnapshotActualVer, '>=9.0.2')) { | ||
| if (!semver.satisfies(mksnapshotActualVer, `>=${majorElectronVersion}`)) { |
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 (!semver.satisfies(mksnapshotActualVer, `>=${majorElectronVersion}`)) { | |
| if (semver.lt(mksnapshotActualVer, majorElectronVersion)) { |
|
Thanks for the contribution 🙇🏾♂️ @icecream17 |
|
Thank you very much. I ran into an issue here as follows with the build script ( presumably as it was attempting to install It looks like a shared library component ( of the C/C++ variety from the looks of it ) is failing to compile for the installation of |
|
The getContents error seems related to this deprecation in oniguruma: atom/node-oniguruma#114, but it doesn't look like the pr directly translates |
... and electron-snapshot to the current electron version (v11)
Identify the Bug
fixes #23573
Description of the Change
Updates electron-chromedriver and electron-snapshot to the current version (v11) and also adds code in
script/lib/check-chromedriver-versionto make sure that the versions always match.This fixes the issue because https://github.com/electron/mksnapshot/releases/tag/v11.0.1 supports arm64 macOS
Alternate Designs
Oh wait, semver has comparison functions like
ltandgte, see my suggested changes.Possible Drawbacks
Oops, I ran
npm install npm@6but forgot to put-g, so I guess the npm dependency is also updated (6.14.8-->^6.14.16)Verification Process
tests pass!