Skip to content

fix(core): Prevent concurrent yarn classic calls#7137

Open
rmoore-bn wants to merge 1 commit into
yarnpkg:masterfrom
rmoore-bn:yarn-classic-limit
Open

fix(core): Prevent concurrent yarn classic calls#7137
rmoore-bn wants to merge 1 commit into
yarnpkg:masterfrom
rmoore-bn:yarn-classic-limit

Conversation

@rmoore-bn

Copy link
Copy Markdown

What's the problem this PR addresses?

When preparing multiple packages from GitHub dependencies there is no concurrency control on calls to yarn classic. This breaks, as yarn classic's cache access is not concurrency safe.

Closes: #5349

How did you fix it?

Adds a new pLimit(1) which wraps calls to yarn classic.

An old PR exists for this problem which attempted to solve this in a more complicated way using yarn classic's mutex: #5373

A review comment suggest this approach instead, which this PR implements.

We can add another limit for just Yarn classic installs.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@rmoore-bn rmoore-bn marked this pull request as ready for review May 15, 2026 20:28
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.

[Bug?]: Yarn runs multiple classic yarn installs on github deps without mutex. Causes cache issue/error.

1 participant