Merge pull request #144607 from hercules-ci/fix-find-tarballs-avoid-tests

find-tarballs.nix: Avoid all passthru attrs
This commit is contained in:
Robert Hensing 2021-11-04 16:14:02 +01:00 committed by GitHub
commit 8dd2f31e6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ let
keyDrv = drv: if canEval drv.drvPath then { key = drv.drvPath; value = drv; } else { };
immediateDependenciesOf = drv:
concatLists (mapAttrsToList (n: v: derivationsIn v) (removeAttrs drv ["meta" "passthru"]));
concatLists (mapAttrsToList (n: v: derivationsIn v) (removeAttrs drv (["meta" "passthru"] ++ optionals (drv?passthru) (attrNames drv.passthru))));
derivationsIn = x:
if !canEval x then []