Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: attribute 'class' missing when mixing module system versions #232396

Closed
roberth opened this issue May 17, 2023 · 0 comments
Closed

error: attribute 'class' missing when mixing module system versions #232396

roberth opened this issue May 17, 2023 · 0 comments
Labels
0.kind: bug 6.topic: module system About "NixOS" module system internals

Comments

@roberth
Copy link
Member

roberth commented May 17, 2023

Describe the bug

The following error occurs since when mixing older versions of the module system with #197547.
It's recommended not to mix module system versions, but I have a fix in mind.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Mix module system versions.
  2. Evaluate
  3. See the error, with the significant bits:

       error: attribute 'class' missing

       at /nix/store/<hash>-source/lib/types.nix:778:41:

          777|             class =
          778|               if lhs.class == null then rhs.class
             |                                         ^
          779|               else if rhs.class == null then lhs.class

Expected behavior

At least adjacent versions of the module system interoperate.

Screenshots

Additional context

Notify maintainers

@roberth

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"
output here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: module system About "NixOS" module system internals
Projects
None yet
Development

No branches or pull requests

1 participant