Skip to content

Commit

Permalink
fix(alejandra): one --exclude flag per file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Apr 16, 2024
1 parent 40e6053 commit 59d884a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ in
cmdArgs =
mkCmdArgs (with hooks.alejandra.settings; [
[ check "--check" ]
[ (exclude != [ ]) "--exclude ${lib.escapeShellArgs (lib.unique exclude)}" ]
[ (exclude != [ ]) "${lib.escapeShellArgs (map (file: "--exclude '${file}'") (lib.unique exclude))}" ]
[ (verbosity == "quiet") "-q" ]
[ (verbosity == "silent") "-qq" ]
[ (threads != null) "--threads ${toString threads}" ]
Expand Down

0 comments on commit 59d884a

Please sign in to comment.