mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
ci/eval/compare/maintainers.nix: Improve interface and document
This commit is contained in:
parent
dbb164c759
commit
c0d434bf40
2 changed files with 36 additions and 27 deletions
|
|
@ -123,9 +123,7 @@ let
|
|||
# - values: lists of `packagePlatformPath`s
|
||||
diffAttrs = builtins.fromJSON (builtins.readFile "${combined}/combined-diff.json");
|
||||
|
||||
changedPackagePlatformAttrs = convertToPackagePlatformAttrs diffAttrs.changed;
|
||||
rebuildsPackagePlatformAttrs = convertToPackagePlatformAttrs diffAttrs.rebuilds;
|
||||
removedPackagePlatformAttrs = convertToPackagePlatformAttrs diffAttrs.removed;
|
||||
|
||||
changed-paths =
|
||||
let
|
||||
|
|
@ -162,9 +160,10 @@ let
|
|||
|
||||
inherit
|
||||
(callPackage ./maintainers.nix {
|
||||
changedattrs = lib.attrNames (lib.groupBy (a: a.name) changedPackagePlatformAttrs);
|
||||
changedpathsjson = touchedFilesJson;
|
||||
removedattrs = lib.attrNames (lib.groupBy (a: a.name) removedPackagePlatformAttrs);
|
||||
affectedAttrPaths = map (a: a.packagePath) (
|
||||
convertToPackagePlatformAttrs (diffAttrs.changed ++ diffAttrs.removed)
|
||||
);
|
||||
changedFiles = lib.importJSON touchedFilesJson;
|
||||
})
|
||||
users
|
||||
teams
|
||||
|
|
@ -181,7 +180,7 @@ runCommand "compare"
|
|||
];
|
||||
users = builtins.toJSON users;
|
||||
teams = builtins.toJSON teams;
|
||||
packages = builtins.toJSON packages;
|
||||
packages = builtins.toJSON (lib.map (lib.concatStringsSep ".") packages);
|
||||
passAsFile = [
|
||||
"users"
|
||||
"teams"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue