[openstreetmap/openstreetmap-website] Upgrade to Yarn v3 (PR #3515)
Andy Allan
notifications at github.com
Wed Apr 6 16:18:16 UTC 2022
I've been doing some research on how Debian (and therefore Ubuntu) intend to package yarn 2/3 in the future, so that we can align with them. Two useful links I found are:
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980316#24
* https://github.com/nodejs/corepack/issues/76
So it looks like eventually we can expect corepack to be packaged, and it will take care of yarn 2/3 in the usual manner (i.e. corepack treats yarn a bit like other node modules, on a per-repo basis). Unfortunately the Debian Node 16 package (in experimental) doesn't come with corepack, and I can't find any indications in https://salsa.debian.org/groups/js-team or on the other debian bug tracker that indicate that anyone is working on it. So it could be a long time before corepack is available through Ubuntu packages.
Since yarn 1.x is still supported (i.e. getting security fixes, and is available in Ubuntu packages), I think we should pause this upgrade. My plan would be to stick with yarn 1.x from packages until we move to Node 16, and then use yarn via corepack. (This means we skip over the intermediate stage, where we need to use yarn 1 to install yarn 2/3 and then commit yarn 2/3 to this repo.)
I'm happy to hear alternative views though!
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3515#issuecomment-1090456809
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3515/c1090456809 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220406/8cc903ef/attachment.htm>
More information about the rails-dev
mailing list