From 7c7009a3da024b6a8380fc089c1ee78f3d29b181 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 22 Jun 2025 20:27:41 +0100 Subject: [PATCH] ci/eval: fix comparing to null in getLabels Check if `to` is null _before_ comparing it to `rebuildCount`. --- ci/eval/compare/utils.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/eval/compare/utils.nix b/ci/eval/compare/utils.nix index d34299ca4654..5dcb97e97535 100644 --- a/ci/eval/compare/utils.nix +++ b/ci/eval/compare/utils.nix @@ -176,7 +176,7 @@ rec { lib.mapAttrsToList ( kernel: rebuildCount: let - range = from: to: from <= rebuildCount && (rebuildCount <= to || to == null); + range = from: to: from <= rebuildCount && (to == null || rebuildCount <= to); in lib.mapAttrs' (number: lib.nameValuePair "10.rebuild-${kernel}: ${number}") { "0" = range 0 0;