From 25f7b297dbae34d38ebc0c989d0e550498a60c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Wed, 9 Jul 2025 18:37:08 +0200 Subject: [PATCH] pnpm.fetchDeps: enforce setting `fetcherVersion` --- pkgs/development/tools/pnpm/fetch-deps/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/pnpm/fetch-deps/default.nix b/pkgs/development/tools/pnpm/fetch-deps/default.nix index 7403548e8792..3d784c5eab9e 100644 --- a/pkgs/development/tools/pnpm/fetch-deps/default.nix +++ b/pkgs/development/tools/pnpm/fetch-deps/default.nix @@ -22,7 +22,7 @@ in pnpmWorkspaces ? [ ], prePnpmInstall ? "", pnpmInstallFlags ? [ ], - fetcherVersion ? 1, + fetcherVersion ? null, ... }@args: let @@ -46,6 +46,10 @@ in "pnpm.fetchDeps: `pnpmWorkspace` is no longer supported, please migrate to `pnpmWorkspaces`." ) true; + assert (lib.throwIf (fetcherVersion == null) + "pnpm.fetchDeps: `fetcherVersion` is not set, see https://nixos.org/manual/nixpkgs/stable/#javascript-pnpm-fetcherVersion." + ) true; + stdenvNoCC.mkDerivation ( finalAttrs: (