Skip to content

Commit 30d44d8

Browse files
fix(ci.formatting): use nixfmt --check to avoid writing to read-only nix store (#548)
1 parent c2b76d3 commit 30d44d8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ci/checks/formatting.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
}:
66

77
pkgs.runCommand "formatting-check" { } ''
8-
${
9-
pkgs.lib.getExe self.formatter.${pkgs.stdenv.hostPlatform.system}
10-
} --no-cache --fail-on-change ${../../.}
8+
find ${../../.} -name "*.nix" -print0 | xargs -0 ${pkgs.lib.getExe pkgs.nixfmt} --check
119
touch $out
1210
''

0 commit comments

Comments
 (0)