chore: migrate to nodeLinker: node-modules#847
Merged
Conversation
Contributor
Author
|
The actual version of Node.js selected by the GitHub Actions runner is randomly 24.14.1 or 24.15.0 during the current ubuntu-24.04 rollout. As luck would have it https://github.com/nodejs/corepack/actions/runs/25918361425/job/76180620903?pr=847 executed the |
This was referenced May 15, 2026
Contributor
|
#817 had been approved (but closed by mistake I assume) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Situation
corepack yarn lintfails with Node.js 24.15.0 LTSNode.js 24.15.0 is currently rolling out in
ubuntu-latest, so failures are sporadic.The corresponding upstream issue yarnpkg/berry#7106 is unresolved.
Change
Migrate the
nodeLinkerconfiguration setting from its default value to an explicitnode-modulessetting in a new .yarnrc.yml settings file:nodeLinker: pnpnodeLinker: node-modulesTo achieve this, cherry-pick 22a3fc0 from PR #652 originally submitted by @geigerzaehler.
The setting has no effect on the npm module published as corepack to the npm registry, apart from allowing the CI job
chore("Testing chores") to succeed under Node.js >=24.15.0. ThenodeLinkersetting is not part of the published npm module.Verification
On Ubuntu 24.04.4 LTS, with Node.js 24.15.0 LTS, execute:
corepack yarn install corepack yarn build corepack yarn typecheck corepack yarn lint corepack yarn testConfirm no errors and all tests passing.