Skip to content

yarn-berry: 4.14.1 -> 4.18.0 - #555729

Merged
SuperSandro2000 merged 2 commits into
NixOS:stagingfrom
DimitarNestorov:update-yarn-berry
Sep 7, 2026
Merged

SuperSandro2000 merged 2 commits into
NixOS:stagingfrom
DimitarNestorov:update-yarn-berry

Conversation

@DimitarNestorov

@DimitarNestorov DimitarNestorov commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

Things done

Closes #542343 (see https://github.com/NixOS/nixpkgs/pull/555729/changes#diff-acc055fd13bfb3b6051219bc66b0f1e1241eb18f1fc21c01f65bcf3ad6323891)
Closes #524710

Unblocks #554800 #553627

  • Added lockfileVersion to yarn-berry so that it can be referenced by other derivations when modifying lockfiles. The value is confirmed in checkPhase so when upstream updates it again Yarn will fail to build.
  • Using YARN_LOCKFILE_VERSION_PLACEHOLDER within dependant's patch files to prevent the need to modify them when upstream bumps the lockfile version again
  • Apply dependant's patch files with the postFetch hook of fetchFromGitHub to prevent update scripts from breaking

Build status

package x86_64-linux aarch64-linux aarch64-darwin
actual-server ✅ ✅ ❌1
affine ✅2 ✅2 ✅
anki ✅ ✅ ❌3
aws-cdk-cli ✅ ✅ ✅
bitfocus-companion ✅4 ✅4 N/A
cockpit-zfs ✅ ✅ N/A
corepack ✅ ✅ ✅
dokieli ✅ ✅ ✅
eas-cli ✅ ✅ ✅
electron ⚠️5 ⚠️5 N/A6
electron-fiddle ✅7 ✅7 N/A
gitbeaker-cli ✅ ❌8 ✅
grafana ✅ ✅ ✅
hedgedoc ✅ ✅ N/A
home-assistant-custom-lovelace-modules.advanced-camera-card ✅ ✅ ✅
home-assistant-custom-lovelace-modules.horizon-card ✅ ✅ ✅
insulator2 ✅ ✅ N/A
joplin-cli ✅ ✅ ✅
joplin-desktop ✅9 ✅9 ✅
koito.client ✅ ✅ ✅
learn6502 ✅ ✅ N/A
linkwarden ✅ N/A N/A
losslesscut ✅10 ✅10 ❌11
mastodon ✅ ✅ N/A
napi-rs-cli_3 ✅ ✅ ✅
outline ✅ ✅ N/A
peacock ✅ ✅ N/A
pgadmin4 ✅ ✅ ✅
prettier ✅ ✅ ✅
proton-authenticator ✅ ✅ ✅
python3Packages.locust.webui ✅ ✅ ✅
r2modman ✅12 ✅12 ✅
rocketchat-desktop ✅13 ✅13 N/A
synapse-admin ✅ ✅ ✅
tilt ✅ ✅ ✅
uppy-companion ✅ ✅ N/A
vultisig-cli ✅ ✅ ✅
ytmdesktop ✅14 ✅14 ✅

Footnotes

  1. actual-server on Darwin fails on latest unstable too https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33098429235 ↩

  2. affine depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062788761 ↩ ↩2

  3. anki on Darwin fails on latest unstable too https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33083022085/job/98555060676 ↩

  4. bitfocus-companion depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062702405 ↩ ↩2

  5. electron on Linux is built from source and takes longer than 6 hours to build; without the changes in the electron folder build fails in less than 10 minutes: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33102956489/job/98625220517; with the changes we hit the GitHub Actions timeout: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33101431626 ↩ ↩2

  6. electron on Darwin uses a binary distribution which doesn't depend on Yarn ↩

  7. electron-fiddle depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33099485089 ↩ ↩2

  8. gitbeaker-cli on aarch64-linux fails on latest unstable too https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33054645174/job/98458281721 ↩

  9. joplin-desktop depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062730441 ↩ ↩2

  10. losslesscut depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062563720 ↩ ↩2

  11. losslesscut on Darwin fails on latest unstable too https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33104512452/job/98630649835 ↩

  12. r2modman depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062764831 ↩ ↩2

  13. rocketchat-desktop depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062539037 ↩ ↩2

  14. ytmdesktop depends on Electron which takes more than 6 hours to build on Linux so I made a special derivation to confirm it builds fine with a cached version: https://github.com/DimitarNestorov/nixpkgs-review-gha/actions/runs/33062815570 ↩ ↩2

Comment thread pkgs/by-name/ya/yarn-berry/package.nix Resolved
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Aug 23, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Aug 23, 2026
Comment thread pkgs/by-name/pr/prettier/package.nix Resolved
@SuperSandroBot

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (b0ab82d)

Command: nixpkgs-review pr 555729 -p home-assistant-custom-lovelace-modules.horizon-card
Commit: dd981394b79a4bf473bc92a6499e5a9de8d601a7 (subsequent changes)
Merge: 89590982a3f292951f09a1e9c894aa38b036fbef

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/32660783561/attempts/1


x86_64-linux

❌ 1 package failed to build:
  • home-assistant-custom-lovelace-modules.horizon-card

@DimitarNestorov

DimitarNestorov commented Aug 23, 2026 •

Copy link
Copy Markdown
Member Author

❌ nixpkgs-review result

@SuperSandro2000 the PR is still a draft, I will check all dependents and run nixpkgs-review on all of them and create a table like I did in #513745

@SuperSandro2000

Copy link
Copy Markdown
Member

I know, I just wanted to double-check my suspicion that that also broke 😂

@DimitarNestorov
DimitarNestorov force-pushed the update-yarn-berry branch 2 times, most recently from 6ae267a to d6fbee5 Compare August 23, 2026 20:29
@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Aug 23, 2026
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. and removed 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. labels Aug 23, 2026
@DimitarNestorov
DimitarNestorov changed the base branch from master to staging August 23, 2026 21:21
@nixpkgs-ci nixpkgs-ci Bot closed this Aug 23, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Aug 23, 2026
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review August 23, 2026 21:29

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. and removed 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. labels Aug 23, 2026
@ShamrockLee

Copy link
Copy Markdown
Contributor

Are previous lock file version deprecated and the hash changes inevitable?

I'm not familiar with the Node/Yarn toolchain to give an in-depth review, but an update that silently invalidate previous hashes would be frowned upon.

@DimitarNestorov

Copy link
Copy Markdown
Member Author

Are previous lock file version deprecated and the hash changes inevitable?

Upstream bumped the lock file version in 4.14.0: yarnpkg/berry#7089

We briefly merged Yarn 4.14.0 which broke every package that depends on Yarn 4: #512685 (comment)

In #513745 we updated to Yarn 4.14.1 and patched every dependant to address the build failures.

Upstream bumped the lock file version in Yarn 4.15.0 again: https://github.com/yarnpkg/berry/pull/7135/changes#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2deR5

Which caused the same mismatched version issues: #524710 (comment)

@euank euank left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The anki package diff LGTM, approving for the anki portion.

@hatch01 hatch01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for cockpit-zfs, build successful and test from #557236 succeed!

@pbek

pbek commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

I independently built proton-authenticator from the PR head on x86_64-linux:

nix build github:NixOS/nixpkgs/d6b70ff65c3f2f51606bec61e0e6cbd62562ba49#proton-authenticator

The Yarn installation, Webpack/Tauri build, and Rust tests all completed successfully (1 passed, 0 failed). I also launched the resulting application successfully.

The changes for proton-authenticator look good to me.

I also tested the functionality of the app.

Comment thread pkgs/by-name/ea/eas-cli/yarn-fix.patch Resolved

@zacharyarnaise zacharyarnaise left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built and tested tilt, works fine!
Approving the tilt changes.

@aduh95 aduh95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for corepack

@aduh95 aduh95 mentioned this pull request Aug 28, 2026
4 of 13 tasks

@cjshearer cjshearer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Built and tested ytmdesktop.

@demic-dev

Copy link
Copy Markdown
Member

I independently built proton-authenticator from the PR head on x86_64-linux:

nix build github:NixOS/nixpkgs/d6b70ff65c3f2f51606bec61e0e6cbd62562ba49#proton-authenticator

The Yarn installation, Webpack/Tauri build, and Rust tests all completed successfully (1 passed, 0 failed). I also launched the resulting application successfully.

The changes for proton-authenticator look good to me.

I also tested the functionality of the app.

I built proton-authenticator on aarch64-linux as well and it compiles and runs succesfully. LGTM

@Defelo Defelo mentioned this pull request Aug 29, 2026
5 of 14 tasks
@DimitarNestorov DimitarNestorov mentioned this pull request Aug 29, 2026
3 of 13 tasks

@iv-nn iv-nn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Built and tested koito.

@Tiebe Tiebe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for bitfocus-companion!

@Mynacol Mynacol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built and quickly tested rocketchat-desktop. Everything looks normal 👍️

nixpkgs-branch-check[bot]

This comment was marked as outdated.

Comment thread pkgs/by-name/ya/yarn-berry/package.nix Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet