Invalid arch info in require('os').arch()
#18837
Labels
stage: awaiting response
Potential fix was proposed; awaiting response
require('os').arch()
#18837
Current behavior
On macOS 11.4 20F71 arm64 I am getting
x64
arch inside of Cypress' plugin environment (i.e. incypress/plugins/index.js
), but in any other script I am getting the correctarm64
.Desired behavior
Cypress should provide correct system information.
Test code to reproduce
Here is a reproduction: https://github.com/0x009922/cypress-issue-invalid-os
Cypress Version
8.7.0
Other
It breaks usage of
esbuild@^0.13.0
with "optionalDependencies" installation strategy (see evanw/esbuild#789).pnpm
installs correctesbuild-darwin-arm64
and it works outside of Cypress, but whenesbuild
tries to build something in plugin (e.g. incypress-esbuild-preprocessor
) it tries to resolveesbuild-darwin-x64
package according toos.arch()
, and it fails. Apparently, this is not a bug of esbuild, but of Cypress.The text was updated successfully, but these errors were encountered: