pnpm.fetchDeps: enforce setting fetcherVersion
This commit is contained in:
@@ -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:
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user