Skip to content

Commit 1649d42

Browse files
fix(ci.formatting): copy source to writable dir before nixfmt-tree on macOS
1 parent c2b76d3 commit 1649d42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ci/checks/formatting.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
}:
66

77
pkgs.runCommand "formatting-check" { } ''
8+
cp -r ${../../.} ./src
9+
chmod -R u+w ./src
810
${
911
pkgs.lib.getExe self.formatter.${pkgs.stdenv.hostPlatform.system}
10-
} --no-cache --fail-on-change ${../../.}
12+
} --no-cache --fail-on-change ./src
1113
touch $out
1214
''

0 commit comments

Comments
 (0)