Skip to content

prisma_6,prisma_7: use pnpm pack instead of npm pack - #489872

Merged
gepbird merged 2 commits into
NixOS:masterfrom
aqrln:aqrln-prnwurzmpvxn
Feb 17, 2026
Merged

gepbird merged 2 commits into
NixOS:masterfrom
aqrln:aqrln-prnwurzmpvxn

Conversation

@aqrln

@aqrln aqrln commented Feb 12, 2026 •

Copy link
Copy Markdown
Member

prisma_6 and prisma_7 packages incorrectly used npm pack in a pnpm workspace to create the package tarballs. This worked until it didn't in #488068. This change unblocks updating pnpm in nixpkgs. UPD: there are more issues in Prisma packages that block it

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@aqrln aqrln mentioned this pull request Feb 12, 2026
2 of 13 tasks
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Feb 12, 2026

@gepbird gepbird 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.

Thanks!

Diff looks good, but I find it weird that we manually need to resolve workspace package versions. I see without it I get ERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL.

Unfortunately this still breaks after the pnpm update:

prisma_6> prisma:build: Building preinstall as cjs...
prisma_6>
prisma_6>  Tasks:    34 successful, 34 total
prisma_6> Cached:    0 cached, 34 total
prisma_6>   Time:    4m35.767s
prisma_6>
          buildPhase completed in 4 minutes 41 seconds                                        
prisma_6> Scope: all 38 workspace projects
prisma_6> Lockfile is up to date, resolution step is skipped
prisma_6> Packages: +317
prisma_6>
prisma_6> Progress: resolved 317, reused 317, downloaded 0, added 317, done
prisma_6>
prisma_6> devDependencies: skipped
prisma_6>
prisma_6> Done in 2.7s using pnpm v10.29.3
prisma_6> /nix/store/gidygr7l2i5kckd3zv9kfjcymxcycw6y-stdenv-linux/setup: line 1789: cd: packages/../node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc: No such file or directory

@gepbird

gepbird commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

No new failures.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 489872
Commit: 9d02a59f6f79b589e1fde91b4cd9313724c71dc6


x86_64-linux

❌ 1 package failed to build:
  • documenso
✅ 5 packages built:
  • ghostfolio
  • linkwarden
  • prisma_6
  • prisma_7
  • umami

Error logs: `x86_64-linux`
documenso
Configuring npm
Validating consistency between /build/source/package-lock.json and /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/package-lock.json
Setting npm_config_cache to /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps
Installing dependencies
npm warn Unknown env config "nodedir". This will stop working in the next major version of npm.
npm warn Unknown env config "platform". This will stop working in the next major version of npm.
npm warn Unknown env config "arch". This will stop working in the next major version of npm.
npm warn Unknown project config "auto-install-peers". This will stop working in the next major version of npm.
npm error code ENOTCACHED
npm error request to https://registry.npmjs.org/ajv failed: cache mode is 'only-if-cached' but no cached response is available.
npm error Log files were not written due to an error writing to the directory: /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies

Here are a few things you can try, depending on the error:

  1. Set makeCacheWritable = true
    Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
  2. Set npmFlags = [ "--legacy-peer-deps" ]

@gepbird
gepbird requested a review from Scrumplex February 12, 2026 19:20
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Feb 12, 2026
@aqrln

aqrln commented Feb 13, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result for #489872

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 489872
Commit: 9d02a59f6f79b589e1fde91b4cd9313724c71dc6 (subsequent changes)
Merge: a4a7721055f3f0fcceb3af81ce3f053a00eed7ef

Logs: https://github.com/aqrln/nixpkgs-review-gha/actions/runs/21959513609


x86_64-linux

❌ 1 package failed to build:
  • documenso
✅ 5 packages built:
  • ghostfolio
  • linkwarden
  • prisma_6
  • prisma_7
  • umami

Error logs: `x86_64-linux`
documenso
Configuring npm
Validating consistency between /build/source/package-lock.json and /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/package-lock.json
Setting npm_config_cache to /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps
Installing dependencies
npm warn Unknown env config "nodedir". This will stop working in the next major version of npm.
npm warn Unknown env config "platform". This will stop working in the next major version of npm.
npm warn Unknown env config "arch". This will stop working in the next major version of npm.
npm warn Unknown project config "auto-install-peers". This will stop working in the next major version of npm.
npm error code ENOTCACHED
npm error request to https://registry.npmjs.org/ajv failed: cache mode is 'only-if-cached' but no cached response is available.
npm error Log files were not written due to an error writing to the directory: /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies

Here are a few things you can try, depending on the error:

  1. Set makeCacheWritable = true
    Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
  2. Set npmFlags = [ "--legacy-peer-deps" ]

aarch64-linux

❌ 1 package failed to build:
  • documenso
✅ 4 packages built:
  • ghostfolio
  • prisma_6
  • prisma_7
  • umami

Error logs: `aarch64-linux`
documenso
Configuring npm
Validating consistency between /build/source/package-lock.json and /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/package-lock.json
Setting npm_config_cache to /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps
Installing dependencies
npm warn Unknown env config "nodedir". This will stop working in the next major version of npm.
npm warn Unknown env config "platform". This will stop working in the next major version of npm.
npm warn Unknown env config "arch". This will stop working in the next major version of npm.
npm warn Unknown project config "auto-install-peers". This will stop working in the next major version of npm.
npm error code ENOTCACHED
npm error request to https://registry.npmjs.org/ajv failed: cache mode is 'only-if-cached' but no cached response is available.
npm error Log files were not written due to an error writing to the directory: /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies

Here are a few things you can try, depending on the error:

  1. Set makeCacheWritable = true
    Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
  2. Set npmFlags = [ "--legacy-peer-deps" ]

x86_64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • documenso
✅ 3 packages built:
  • ghostfolio
  • prisma_6
  • prisma_7

Error logs: `x86_64-darwin`
documenso
Configuring npm
Validating consistency between /nix/build/nix-5108-2274817558/source/package-lock.json and /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/package-lock.json
Setting npm_config_cache to /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps
Installing dependencies
npm warn Unknown env config "nodedir". This will stop working in the next major version of npm.
npm warn Unknown env config "platform". This will stop working in the next major version of npm.
npm warn Unknown env config "arch". This will stop working in the next major version of npm.
npm warn Unknown project config "auto-install-peers". This will stop working in the next major version of npm.
npm error code ENOTCACHED
npm error request to https://registry.npmjs.org/ajv failed: cache mode is 'only-if-cached' but no cached response is available.
npm error Log files were not written due to an error writing to the directory: /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies

Here are a few things you can try, depending on the error:

  1. Set makeCacheWritable = true
    Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
  2. Set npmFlags = [ "--legacy-peer-deps" ]

aarch64-darwin (sandbox = relaxed)

❌ 1 package failed to build:
  • documenso
✅ 3 packages built:
  • ghostfolio
  • prisma_6
  • prisma_7

Error logs: `aarch64-darwin`
documenso
Configuring npm
Validating consistency between /nix/build/nix-3535-1645907302/source/package-lock.json and /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/package-lock.json
Setting npm_config_cache to /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps
Installing dependencies
npm warn Unknown env config "nodedir". This will stop working in the next major version of npm.
npm warn Unknown env config "platform". This will stop working in the next major version of npm.
npm warn Unknown env config "arch". This will stop working in the next major version of npm.
npm warn Unknown project config "auto-install-peers". This will stop working in the next major version of npm.
npm error code ENOTCACHED
npm error request to https://registry.npmjs.org/ajv failed: cache mode is 'only-if-cached' but no cached response is available.
npm error Log files were not written due to an error writing to the directory: /nix/store/m4d0hckndwadljinshlbzmbfcbz8xcmg-documenso-1.12.6-npm-deps/_logs
npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

ERROR: npm failed to install dependencies

Here are a few things you can try, depending on the error:

  1. Set makeCacheWritable = true
    Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error.
  2. Set npmFlags = [ "--legacy-peer-deps" ]

@gepbird gepbird 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.

No objections against this change, but we will need other changes for prisma/pnpm before we can bump pnpm.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Feb 13, 2026
@gepbird
gepbird added this pull request to the merge queue Feb 17, 2026
Merged via the queue into NixOS:master with commit 6f62661 Feb 17, 2026
36 of 38 checks passed
@diogotcorreia diogotcorreia added the 8.has: port to stable This PR already has a backport to the stable release. label Feb 19, 2026
@aqrln
aqrln deleted the aqrln-prnwurzmpvxn branch February 20, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants