Unverified Commit 791bdb74 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

check-meta: de-dupe maintainers list

This makes it so that the maintainers list is not unneccery filled with dupelicated entriy caused by addition of adding team members.
parent bcfc404e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ let
    toList
    isList
    elem
    unique
    ;

  inherit (lib.meta)
@@ -667,8 +668,9 @@ let
      # Maintainers should be inclusive of teams.
      # Note that there may be external consumers of this API (repology, for instance) -
      # if you add a new maintainer or team attribute please ensure that this expectation is still met.
      maintainers =
        attrs.meta.maintainers or [ ] ++ concatMap (team: team.members or [ ]) attrs.meta.teams or [ ];
      maintainers = unique (
        attrs.meta.maintainers or [ ] ++ concatMap (team: team.members or [ ]) attrs.meta.teams or [ ]
      );

      identifiers =
        let