chore: make Yarn v1 version installation explicit#1786
Merged
Conversation
Collaborator
|
mschile
approved these changes
Jun 9, 2026
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
In scripts/update-cypress-latest-yarn.sh Yarn v1 Classic is globally installed with
npm install yarn@latest -gyarn@latestcurrently equates toyarn@1.22.22The Yarn v1 module owner announced plans to re-use the npm yarn module for future Switch usage with Yarn v6.
Change
Replace
yarn@latestwithyarn@1to install the latest Yarn v1 Classic version in the scripts/update-cypress-latest-yarn.sh script.Verify
Execute
and confirm no errors.
Note
Low Risk
Only affects a maintenance script’s global Yarn version specifier; no runtime or CI product logic changes.
Overview
Pins global Yarn Classic installs in
scripts/update-cypress-latest-yarn.shby changingnpm install yarn@latest -gtonpm install yarn@1 -gin both places (start of the Yarn 1 Classic section and after disabling corepack post–Yarn 4 Modern).Behavior stays “latest Yarn 1.x,” but the tag avoids accidentally pulling a future non–v1 release if the
yarnnpm package is republished for Yarn v6.Reviewed by Cursor Bugbot for commit 343f02f. Bugbot is set up for automated code reviews on this repo. Configure here.