From 59d884a4487bbf6347223977463b72e1cd3fb08c Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Tue, 16 Apr 2024 10:54:17 +0200 Subject: [PATCH] fix(alejandra): one `--exclude` flag per file --- modules/hooks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index 9e64c0f0..35d4545d 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -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}" ]