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(yarnpkg-pnp): make yarn 2 run on node 13 #550
fix(yarnpkg-pnp): make yarn 2 run on node 13 #550
Conversation
I remember reading that the default shell for GitHub Actions running on Windows would change - it's probably because of this. I think replacing |
packages/yarnpkg-pnp/package.json
Outdated
@@ -2,8 +2,8 @@ | |||
"name": "@yarnpkg/pnp", | |||
"version": "2.0.0-rc.6", | |||
"nextVersion": { | |||
"semver": "2.0.0-rc.7", | |||
"nonce": "7116580554445175" | |||
"semver": "2.0.0", |
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.
There's a problem here - you scheduled a major (instead of just prerelease) 🙂
"semver": "2.0.0", | |
"semver": "2.0.0-rc.7", |
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.
dang - ran yarn version patch
on each of them instead of that nice version check -i
Sorry! 😊 . Fix coming up ...
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.
fixed
packages/yarnpkg-pnpify/package.json
Outdated
@@ -2,8 +2,8 @@ | |||
"name": "@yarnpkg/pnpify", | |||
"version": "2.0.0-rc.7", | |||
"nextVersion": { | |||
"semver": "2.0.0-rc.8", | |||
"nonce": "8206665822561467" | |||
"semver": "2.0.0", |
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.
"semver": "2.0.0", | |
"semver": "2.0.0-rc.8", |
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.
fixed
I've tried it (over here in a demo repo) - but it makes the gh-actions config invalid, so the ci script doesn't get executed (error message: So there's two possible courses of action (there might be more, but this is what I currently see):
For now I've taken the liberty to remove the |
Perfect, thanks! I've merged #551 to always force the tests to run with Bash - I prefer our runner to be consistent if possible. Good to go 👍 |
What's the problem this PR addresses?
yarn v2 did not run on node 13 because of a problem with pnp - see yarnpkg/yarn#7642 and PR yarnpkg/yarn#7650.
How did you fix it?
Module._findPath
inapplyPatch.ts
take into account that thepaths
parameter can benull
./scripts/run-yarn.js build:cli+hook
to rebuild the cli & pnp hook code./scripts/run-yarn.js
so the.pnp.js
has the fix as wellNotes
It seems the windows builds get tripped up by the
set -e
in workflows/integration-workflow. In windows shellset -e
has a different meaning, apparently, and it might be that in the latest images of windows the check on the missing parameter got a bit more strict:PR #549 (typo fix) doesn't green because of this either...