Skip to content

Commit

Permalink
[Backport release-24.11] ci/eval/compare: Ignore null packages (#381555)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Feb 12, 2025
2 parents f64bb34 + f3a4bcf commit c4ee301
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/eval/compare/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ let
pkg:
if (lib.attrsets.hasAttrByPath pkg.path pkgs) then
(
if (builtins.tryEval (lib.attrsets.attrByPath pkg.path null pkgs)).success then
true
let
value = lib.attrsets.attrByPath pkg.path null pkgs;
in
if (builtins.tryEval value).success then
if value != null then true else builtins.trace "${pkg.name} exists but is null" false
else
builtins.trace "Failed to access ${pkg.name} even though it exists" false
)
Expand Down

0 comments on commit c4ee301

Please sign in to comment.