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

fix: don't ignore engines with yarn v2+ #831

Merged
merged 1 commit into from
Oct 5, 2020
Merged

Conversation

richardlau
Copy link
Member

@richardlau richardlau commented Sep 25, 2020

yarn v2 doesn't support the YARN_IGNORE_ENGINES environment variable.
We still need to set YARN_IGNORE_ENGINES for older versions of yarn
to allow installation with unreleased versions of Node.js. Projects are
able to use yarn policies to set the version of yarn they are using,
so we need to version sniff to determine whether or not to set the
environment variable.

Fixes: #824

Checklist
  • npm test passes
  • tests are included
  • contribution guidelines followed
    here

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2020

Codecov Report

Merging #831 into main will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #831      +/-   ##
==========================================
+ Coverage   96.05%   96.12%   +0.06%     
==========================================
  Files          31       31              
  Lines         913      929      +16     
==========================================
+ Hits          877      893      +16     
  Misses         36       36              
Impacted Files Coverage Δ
lib/create-options.js 100.00% <ø> (ø)
lib/package-manager/install.js 96.72% <100.00%> (+1.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c0305d...740e268. Read the comment docs.

@richardlau

This comment has been minimized.

@richardlau
Copy link
Member Author

CI (using nodejs/node#35332 to avoid the umask deprecation noise): https://ci.nodejs.org/job/citgm-smoker/2483/

@richardlau richardlau changed the title fix: only ignore-engines with yarn v2 fix: only ignore engines with yarn v2 Sep 26, 2020
@richardlau richardlau changed the title fix: only ignore engines with yarn v2 fix: only ignore engines with yarn v1 Sep 26, 2020
@richardlau richardlau changed the title fix: only ignore engines with yarn v1 fix: don't ignore engines with yarn v2+ Sep 26, 2020
yarn v2 doesn't support the `YARN_IGNORE_ENGINES` environment variable.
We still need to set `YARN_IGNORE_ENGINES` for older versions of yarn
to allow installation with unreleased versions of Node.js. Projects are
able to use yarn policies to set the version of yarn they are using,
so we need to version sniff to determine whether or not to set the
environment variable.
Copy link
Contributor

@MylesBorins MylesBorins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

@richardlau richardlau merged commit 5c8baa7 into nodejs:main Oct 5, 2020
@richardlau richardlau deleted the yarn branch October 5, 2020 18:17
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.

eslint-plugin-jest v24.0.0 broken on CI
3 participants