berry icon indicating copy to clipboard operation
berry copied to clipboard

Migration to 4.0 is unclear

Open appsforartists opened this issue 2 years ago • 12 comments

README > Migration Guide links to "Migrating from 1.x / npm"

It would be helpful to have a guide for upgrading from e.g. 3.x to 4.x, even if it's a brief addition like "Already on a recent version of Yarn? All you need to do is upgrade. Check the changelog to see what's new."

appsforartists avatar Oct 24 '23 19:10 appsforartists

Also adding something like that to the 4.0 blog post might make those users who don't follow the project closely a bit happier.

thorn0 avatar Oct 24 '23 20:10 thorn0

This is all I had to do to upgrade from v3.

yarn set version berry
yarn install

It was pretty seamless. yarn install will auto-migrate old things it finds.

milesj avatar Oct 24 '23 20:10 milesj

I want to install yarn 3 only

Wjhat should I do to make this happen from this step

    - npm i -g corepack && corepack enable && corepack prepare yarn@stable --activate
    - yarn -v

Can some one really help this. this kind of unstable process is troubling us a lot. our pipelines are broken

riginoommen avatar Oct 25 '23 09:10 riginoommen

Can some one really help this. this kind of unstable process is troubling us a lot. our pipelines are broken.

I already answered you in the thread you opened (#5865).

And keep in mind for the future that stable is always the latest stable release (similarly, canary is always the latest release, stable or not). This is a fairly common pattern in software development. If you wish to always use a specific version, then explicitly state you want this specific version.

arcanis avatar Oct 25 '23 10:10 arcanis

At least put documentation on the yarn 3 specific installation. thing is how an end user knows you are following this model. of the version bumps

riginoommen avatar Oct 25 '23 12:10 riginoommen

What's so difficult about yarn set version 3.6.3 or corepack prepare [email protected]?

Of course the "stable" tag is always going to point to the latest... stable. Which is v4.

milesj avatar Oct 25 '23 16:10 milesj

It's not difficult but need to be documented

riginoommen avatar Oct 25 '23 17:10 riginoommen

You mean, like, right there?

I don't know why you're trying to take a thread about updating the docs to help users stay on the current version on your sidequest to pin your personal copy to some random version.

appsforartists avatar Oct 25 '23 17:10 appsforartists

Exactly like this

riginoommen avatar Oct 25 '23 18:10 riginoommen

When I search for yarn 3 installation it points to the stable tag

riginoommen avatar Oct 25 '23 18:10 riginoommen

Some days, GitHub needs a 🤦‍♂️ reaction…

appsforartists avatar Oct 25 '23 18:10 appsforartists

You guys think we always have all the time in the world to untangle a mess cause by such a simple command.

jdbertron avatar Jun 12 '24 22:06 jdbertron