[Backport release-26.05] pnpm: don't require knownVulnerabilities to be set (#537069)

This commit is contained in:
dotlambda 2026-07-01 01:24:57 +00:00 committed by GitHub
commit 3bf25a4a53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View file

@ -42,12 +42,13 @@ let
callPnpm =
variant:
callPackage ./generic.nix {
inherit (variant) version hash;
knownVulnerabilities = variant.knownVulnerabilities or [ ];
#FIXME: remove this hack in a future version.
nodejs = null; # Passing null to detect out-of-tree overrides
};
callPackage ./generic.nix (
variant
// {
#FIXME: remove this hack in a future version.
nodejs = null; # Passing null to detect out-of-tree overrides
}
);
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
in

View file

@ -17,7 +17,7 @@
withNode ? true,
version,
hash,
knownVulnerabilities,
knownVulnerabilities ? [ ],
}:
let
majorVersion = lib.versions.major version;