pnpm.fetchDeps: enforce setting fetcherVersion

This commit is contained in:
Gutyina Gergő
2025-07-14 11:51:38 +02:00
parent 09a31a6397
commit 25f7b297db
@@ -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:
(