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

Adds support for --ignore-cpu in yarn install #8381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexeykuzmin
Copy link

Summary

When cross-compiling a project for a different CPU architecture, e.g. for arm on a x64 machine, the only option to install arch-specific packages is to pass --ignore-platform. But that flag also triggers installation of platform-restricted packages not intended to be used on the current platform. Since such packages are always optional their build failures are ignored, but it would be better to not build them at all.

Let's add a new command line flag --ignore-cpu to ignore "cpu" restrictions in package.json,
but preserve behaviour of --ignore-platform to ignore both "cpu" and "os".

To avoid merge conflicts CHANGELOG.md will be updated after the feature is approved by maintainers.

Test plan

Existing tests are updated and new ones are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant