Skip to content

Specify yarn 1.22.22 in .tool-versions#6682

Merged
misaka merged 1 commit intonextfrom
use-yarn-1-in-tool-versions
Apr 23, 2026
Merged

Specify yarn 1.22.22 in .tool-versions#6682
misaka merged 1 commit intonextfrom
use-yarn-1-in-tool-versions

Conversation

@chrisroos
Copy link
Copy Markdown
Contributor

@chrisroos chrisroos commented Apr 23, 2026

PR #6612 added yarn to .tool-versions instead of specifying that it should be installed using homebrew. The version you get when installing using homebrew is 1.22.22 ("Yarn classic") while the version added to .tool-versions was 4.9.4 ("Yarn modern"). I've opened a draft PR to follow the migration guide to upgrade to Yarn modern but it seems like it might be a bit involved. In the meantime all the developers will start to see changes to .package.json and the addition of new yarn related files when they run yarn install. I think it's safer for now to retain the behaviour prior to #6612 while we work on #6681 in the background.

...

Jira Issue - MAV-6706

@chrisroos chrisroos marked this pull request as ready for review April 23, 2026 16:31
@chrisroos chrisroos requested a review from a team as a code owner April 23, 2026 16:31
@chrisroos chrisroos force-pushed the use-yarn-1-in-tool-versions branch from aa2529e to b31ef22 Compare April 23, 2026 16:40
@misaka misaka force-pushed the use-yarn-1-in-tool-versions branch from b31ef22 to 739942a Compare April 23, 2026 18:29
PR #6612 added yarn to .tool-versions instead of specifying that it
should be installed using homebrew. The version you get when installing
using homebrew is 1.22.22[1] ("Yarn classic") while the version added to
.tool-versions was 4.9.4 ("Yarn modern"). I've opened a draft PR[2] to
follow the migration guide to upgrade to Yarn modern but it seems like
it might be a bit involved. In the meantime all the developers will
start to see changes to .package.json and the addition of new yarn
related files when they run `yarn install`. I think it's safer for now
to retain the behaviour prior to #6612 while we work on #6681 in the
background.

[1]: https://formulae.brew.sh/formula/yarn
[2]: #6681
@misaka misaka force-pushed the use-yarn-1-in-tool-versions branch from 739942a to 4918e6d Compare April 23, 2026 18:35
@misaka
Copy link
Copy Markdown
Collaborator

misaka commented Apr 23, 2026

Further explanation from @chrisroos on why the change in #6612 breaks things, but why that wasn't evident in the PRs checks:

#6612 didn't update the associated .yarn config files and so it wasn't enforcing the use of yarn 4. But this means that anyone that checks out next (since #6612 was merged) and runs yarn install will see a load of changes to package.json and yarn.lock and some additional .yarn config files. These are the changes we need to commit (among others) in order to actually use yarn 4 everywhere.

@misaka misaka merged commit 870b2f9 into next Apr 23, 2026
15 checks passed
@misaka misaka deleted the use-yarn-1-in-tool-versions branch April 23, 2026 19:03
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.

4 participants