Skip to content

Using mkRenamedOptionModule does not show a warning #259

Open
@oddlama

Description

I'm just about to rename an option in one of my projects that have a module for flake-parts, and naturally I imported an (mkRenamedOptionModule ["agenix-rekey" "nodes" ] [ "agenix-rekey" "nixosConfigurations"]) in the relevant file. To my surprise using the old option does not trigger any warnings to be shown.

It looks like the trace gets triggered by the option type's use function, but for some reason this is not triggering when I evaluate the flake. Is there anything obvious I'm missing? It's used in a perSystem context like this:

perSystem = flake-parts-lib.mkPerSystemOption (
  { lib, ... }:
  {
    imports = [
      (lib.mkRenamedOptionModule [ "agenix-rekey" "nodes" ] [ "agenix-rekey" "nixosConfigurations" ] )
    ];
    options = {
      # ...
    };
  }
);

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions