Skip to content

Commit c42f2c5

Browse files
committed
statix: pass list settings as repeated flags instead of space-joined string
Previously, all list values in settings were joined into a single space-separated string via concatStringsSep, producing e.g. `--ignore "pattern1 pattern2"`. Now each element is passed as a separate flag, matching the expected CLI interface. Assisted-by: opencode <opencode@anomaly.so> 1.15.7
1 parent 61ab0e8 commit c42f2c5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

modules/hooks.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4622,12 +4622,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
46224622
};
46234623
options = lib.cli.toCommandLine
46244624
optionFormat
4625-
(lib.mapAttrs
4626-
(_: v:
4627-
if builtins.isList v
4628-
then builtins.concatStringsSep " " (lib.unique v)
4629-
else v)
4630-
settings);
4625+
settings;
46314626
in
46324627
"${package}/bin/statix check ${toString options}";
46334628
files = "\\.nix$";

0 commit comments

Comments
 (0)