Repository navigation
pnpm_10: 10.28.0 -> 10.30.0 - #488068
pnpm_10: 10.28.0 -> 10.30.0#488068
Conversation
|
This update breaks the following packages:
|
|
Rebuilding
I reported this at pnpm/pnpm#10571. |
e12371f to
05559fd
Compare
|
10.29.2 reverted the commit that caused the lockfile changes :) |
|
|
10.29.2 fixed
|
|
Why does Prisma use npm during installPhase? Seems like this was bound to break at some point. |
|
cc @aqrln |
05559fd to
21715e2
Compare
likely a typo 😬 |
I tried naively replacing it to use pnpm, but looks like it outputs a different json structure: > Done in 1s using pnpm v10.28.0
> jq: parse error: Invalid numeric literal at line 2, column 2
> sh: line 1: is-ci: command not found
> sh: line 1: husky: command not founddiff --git a/pkgs/by-name/pr/prisma_6/package.nix b/pkgs/by-name/pr/prisma_6/package.nix
index b89e067eafc3..9b69e453cb79 100644
--- a/pkgs/by-name/pr/prisma_6/package.nix
+++ b/pkgs/by-name/pr/prisma_6/package.nix
@@ -74,7 +74,7 @@ stdenv.mkDerivation (finalAttrs: {
# Only install cli and its workspace dependencies
for package in cli $deps; do
- filename=$(npm pack --json ./packages/$package | jq -r '.[].filename')
+ filename=$(pnpm pack --json ./packages/$package | jq -r '.[].filename')
mkdir -p $out/lib/prisma/packages/$package
[ -d "packages/$package/node_modules" ] && \
cp -r packages/$package/node_modules $out/lib/prisma/packages/$package@aqrln would you mind migrating this script to pnpm if possible? |
c1af148 to
6269ad3
Compare
6269ad3 to
8416e45
Compare
|
Since prisma doesn't build with newer pnpm, I don't have the time to find what causes it and how to fix it, and pnpm is getting more and more outdated in nixpkgs, I propose to just pin pnpm to an older version for prisma. Hopefully no or not too many out of tree packages will be affected. |
This comment was marked as outdated.
This comment was marked as outdated.
|
No new failures.
|
|
Seems like the new JSON response has a @gepbird can you apply this patch? diff --git a/pkgs/by-name/pr/prisma_6/package.nix b/pkgs/by-name/pr/prisma_6/package.nix
index d552a05422ffb1..55123fb74da3c5 100644
--- a/pkgs/by-name/pr/prisma_6/package.nix
+++ b/pkgs/by-name/pr/prisma_6/package.nix
@@ -73,7 +73,7 @@ stdenv.mkDerivation (finalAttrs: {
# Fetch CLI workspace dependencies
deps_json=$(pnpm list --filter ./packages/cli --prod --depth Infinity --json)
- deps=$(jq -r '[.. | strings | select(startswith("link:../")) | sub("^link:../"; "")] | unique[]' <<< "$deps_json")
+ deps=$(jq -r '[del(.. | .unsavedDependencies?) | .. | strings | select(startswith("link:../")) | sub("^link:../"; "")] | unique[]' <<< "$deps_json")
# Remove unnecessary external dependencies
find . -name node_modules -type d -prune -exec rm -rf {} +
diff --git a/pkgs/by-name/pr/prisma_7/package.nix b/pkgs/by-name/pr/prisma_7/package.nix
index 68cd556f5b2510..97060cda953c4d 100644
--- a/pkgs/by-name/pr/prisma_7/package.nix
+++ b/pkgs/by-name/pr/prisma_7/package.nix
@@ -73,7 +73,7 @@ stdenv.mkDerivation (finalAttrs: {
# Fetch CLI workspace dependencies
deps_json=$(pnpm list --filter ./packages/cli --prod --depth Infinity --json)
- deps=$(jq -r '[.. | strings | select(startswith("link:../")) | sub("^link:../"; "")] | unique[]' <<< "$deps_json")
+ deps=$(jq -r '[del(.. | .unsavedDependencies?) | .. | strings | select(startswith("link:../")) | sub("^link:../"; "")] | unique[]' <<< "$deps_json")
# Remove unnecessary external dependencies
find . -name node_modules -type d -prune -exec rm -rf {} +I've built |
8416e45 to
5a341be
Compare
diogotcorreia
left a comment
There was a problem hiding this comment.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 488068 --package prisma_6 --package prisma_7.tests --package umami.tests --package prisma_7 --package linkwarden --package ghostfolio --package umami --package prisma_6.tests --package linkwarden.tests
Commit: 5a341beed031a9858c3297769a1a29173bd6846e
x86_64-linux
✅ 9 packages built:
- ghostfolio
- linkwarden
- linkwarden.tests.linkwarden
- prisma_6
- prisma_6.tests.cli
- prisma_7
- prisma_7.tests.cli
- umami
- umami.tests.umami
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-25.11
git worktree add -d .worktree/backport-488068-to-release-25.11 origin/release-25.11
cd .worktree/backport-488068-to-release-25.11
git switch --create backport-488068-to-release-25.11
git cherry-pick -x 3ba65637004bb8f7f39e8406d77133b36288bf8e 5a341beed031a9858c3297769a1a29173bd6846e |
|
I'll backport this manually |
|
I changed my mind: I've backported prisma 7 to 25.11 first (as discussed in #472380 (comment)), which will then allow this to be backported automatically |
|
This broke signal-desktop on master: #492121 |
|
|
|
It works with 10.29.2 but is broken in 10.29.3 |
|
I have done some light investigation and I believe this is the culprit commit: pnpm/pnpm@ba1f596 It seems like electron-builder runs I believe it doesn't take into account the new Found the following related issues: It might take a while for a potential fix to propagate to downstream apps. Should we pin those to pnpm 10.29.2 and upgrade pnpm to 10.30.1 everywhere else? |
|
Thanks for your research on it @diogotcorreia!
I think we should first try to update to 10.29.2, it already has a special change for prisma due to a pnpm change and we don't jump many versions in a single PR. Then try to update to the latest pnpm globally and either pin broken packages to 10.29.2 or patch them (or electron) to work with newer pnpm. I'm not sure how to find all broken packages, they malfunction at runtime rather than throwing errors during build :/ |
Releases:
Closes #484013.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.