Skip to content

Eval check not catching certain eval errors #397184

@winterqt

Description

@winterqt

See #396749 (comment).

To reproduce on master:

diff --git a/pkgs/by-name/re/refine/package.nix b/pkgs/by-name/re/refine/package.nix
index 6445c28e9359..163d52b93b3e 100644
--- a/pkgs/by-name/re/refine/package.nix
+++ b/pkgs/by-name/re/refine/package.nix
@@ -23,7 +23,7 @@ let
   libadwaita' = libadwaita.overrideAttrs (oldAttrs: {
     version = "1.6.2-unstable-2025-01-02";
     src = oldAttrs.src.override {
-      tag = null;
+      tag = "11";
       rev = "f5f0e7ce69405846a8f8bdad11cef2e2a7e99010";
       hash = "sha256-n5RbGHtt2g627T/Tg8m3PjYIl9wfYTIcrplq1pdKAXk=";
     };
diff --git a/pkgs/top-level/release-attrpaths-parallel.nix b/pkgs/top-level/release-attrpaths-parallel.nix
index 46d10c6a9504..06bfc226a6a6 100644
--- a/pkgs/top-level/release-attrpaths-parallel.nix
+++ b/pkgs/top-level/release-attrpaths-parallel.nix
@@ -14,7 +14,7 @@
 
 let
   attrpaths = lib.importJSON attrpathFile;
-  myAttrpaths = lib.sublist (chunkSize * myChunk) chunkSize attrpaths;
+  myAttrpaths = [["refine"]];
 
   unfiltered = import ./release-outpaths.nix {
     inherit path;
$ nix-env -f pkgs/top-level/release-attrpaths-parallel.nix --eval-system aarch64-linux --option restrict-eval true --option allow-import-from-derivation false --query --available --no-name --attr-path --out-path --show-trace --arg chunkSize "1" --arg myChunk 0 --arg attrpathFile ./doesntmatter.json --arg systems "[\"aarch64-linux\"]" --arg checkMeta true --arg includeBroken true -I . -I ./doesntmatter.json

If you nix-instantiate --eval release-attrpaths-parallel.nix, this issue does get caught, which I guess begs the question: is this intentional? What kinds of eval errors is this supposed to catch, then? Should we fix it?

cc @infinisil @philiptaron @wolfgangwalther

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: continuous integrationAffects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions