Skip to content

BUG: Can not use parametric aspects from imported namespace #261

Description

@nikolaiser

Description

Repro https://github.com/nikolaiser/den-repro-parametric-namespace

When including a parametric aspect from an imported namespace it fails with

  error: expected a Boolean but found a list: [ «thunk» ]
       at «github:vic/den/1751a01eafffbdcea9ddc203f2d72bd6587fffc6?narHash=sha256-HbOuxsoL2NOWfLrRBXbvVhweIdDeKjmTnvNpWNhS98s%3D»/nix/fn-can-take.nix:8:49:
            7|       fargs = lib.functionArgs func;
            8|       required = lib.filterAttrs (_: optional: !optional) fargs;
             |                                                 ^
            9|       reqNames = builtins.attrNames required;

If I comment out the broken test in my repro the working test (that is using a non-parametric aspect from the same namespace) succeeds

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions