Skip to content

False postive UnusedArg when argument is used for arguments propagating #42

Open
@nothingelsematters

Description

@nothingelsematters

first file:

args@{ firstArgument, ... }:

{
   attribute = import ./file.nix args;
}

./file.nix :

{ firstArgument }:

{
  ...
}

./file.nix uses firstArgument of first file's arguments

I get UnusedArgument for firstArgument here

But removing it results in:
anonymous function at .../file.nix:1: called without required argument 'firstArgument', at first-file:10:10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions