Skip to content

[Bug?]: --ignore-engines should throw a warning, not an error #5802

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

Open
1 task
darkbasic opened this issue Oct 17, 2023 · 0 comments
Open
1 task

[Bug?]: --ignore-engines should throw a warning, not an error #5802

darkbasic opened this issue Oct 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@darkbasic
Copy link

darkbasic commented Oct 17, 2023

Self-service

  • I'd be willing to implement a fix

Describe the bug

➤ YN0050: The --ignore-engines option is deprecated; engine checking isn't a core feature anymore

Some github workflows try to be compatible with both yarn1 and berry, passing duplicate options like --frozen-lockfile --immutable in order to stay compatible with both.
Unfortunately --ignore-engines throws an error on berry, while it should probably be treated as a warning like --frozen-lockfile.
Engines are ignored anyway on berry.

To reproduce

yarn install --ignore-engines
➤ YN0050: The --ignore-engines option is deprecated; engine checking isn't a core feature anymore

Environment

System:
    OS: Linux 6.6 Arch Linux
    CPU: (16) x64 AMD Ryzen 9 PRO 7940HS w/ Radeon 780M Graphics
  Binaries:
    Node: 18.18.0 - /tmp/xfs-6c1b0828/node
    Yarn: 4.0.0-rc.53 - /tmp/xfs-6c1b0828/yarn
    npm: 10.2.0 - /run/user/1000/fnm_multishells/97785_1697529429361/bin/npm
  npmPackages:
    jest: 29.7.0 => 29.7.0

Additional context

@darkbasic darkbasic added the bug Something isn't working label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant