Unverified Commit 25f7b297 authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

pnpm.fetchDeps: enforce setting `fetcherVersion`

parent 09a31a63
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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:
      (