Skip to content

RFC 140 migration: misleading CI error for aliases #285368

@zeuner

Description

@zeuner

Describe the bug

When defining an alias for a top-level package in pkgs/top-level/all-packages.nix, the RFC 140 related CI will misinterpret it as a callPackage invocation and complain. Even if aliases were forbidden by RFC 140 (which isn't obvious, the public document lists them as "unresolved"), the error message should not be misleading.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Push PR that defines an alias in pkgs/top-level/all-packages.nix
  2. See CI fail on "Check pkgs/by-name"

Expected behavior

Since there is no indication that aliases are disallowed, there should be no error at all. At the very least, it should not be misleading.

Additional context

Can be seen in #256115 (https://github.com/NixOS/nixpkgs/actions/runs/7732190624/job/21081562936?pr=256115)

Notify maintainers

Not sure where to lookup maintainers here. I guess @infinisil might be knowledgeable about this due to dedicated involvement in RFC 140 automation.

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.0-8-amd64, Ubuntu, 20.04.6 LTS (Focal Fossa), nobuild`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.16.1`
 - nixpkgs: `/nixpkgs`

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: continuous integrationAffects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions