Bug 2227706

Summary: Upgrade to yarn v3
Product: [Fedora] Fedora Reporter: cyq <cyqsimon>
Component: yarnpkgAssignee: Zuzana Svetlikova <zsvetlik>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: epel-packagers-sig, manisandro, ngompa13, zsvetlik
Target Milestone: ---Keywords: Upgrades, Upstream
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/yarnpkg/yarn
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-04 08:00:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cyq 2023-07-31 07:04:16 UTC
Yarn 1.x at https://github.com/yarnpkg/yarn has been deprecated and frozen for almost a year now. Development (features & fixes) is now happening on 3.x branch at https://github.com/yarnpkg/berry. An upgrade is sorely overdue.

Reproducible: Always

Steps to Reproduce:
N/A
Actual Results:  
N/A

Expected Results:  
N/A

Comment 1 Sandro Mani 2023-07-31 07:23:41 UTC
I tried to look into it, but in the time spent on it I didn't really manage to understand how to build it from source. Hence I wonder whether the correct approach is rather to just install it via npm and retire the fedora package. Input welcome.

Comment 2 cyq 2023-07-31 09:49:05 UTC
It's typescript, so I don't think there is a "build step". There's an AUR package (https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yarn-berry) that just copies the files.

Now admittedly there is a lack of packaging documentation/recommendation/guide from the authors. I have submitted an issue in their repo: https://github.com/yarnpkg/berry/issues/5628.

Comment 3 Sandro Mani 2023-08-04 08:00:25 UTC
According to upstream, yarn-v3 is not meant to be packaged. Closing therefore.