Skip to content

Conversation

@yunfachi
Copy link
Contributor

@yunfachi yunfachi commented Sep 6, 2025

lib.types.attrs does not recursively update attribute values. It simply overwrites them. Because of this behavior, the code on line 427 does not allow setting own rawConfig.repos at all:

    rawConfig =
      {
        repos =
          [
            {
              repo = "local";
              hooks = processedHooks;
            }
          ];
      } // lib.optionalAttrs (cfg.excludes != [ ]) {
        exclude = mergeExcludes cfg.excludes;
      } // lib.optionalAttrs (cfg.default_stages != [ ]) {
        default_stages = cfg.default_stages;
      };

@yunfachi
Copy link
Contributor Author

yunfachi commented Sep 7, 2025

ping @domenkozar

@domenkozar domenkozar merged commit ab82ab0 into cachix:master Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants