Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions checks/formatting.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
}:

pkgs.runCommand "formatting-check" { } ''
${
pkgs.lib.getExe self.formatter.${pkgs.stdenv.hostPlatform.system}
} --no-cache --fail-on-change ${../.}
cd $(mktemp -d)
#mutable copy to make treefmt opening the files with its default mode happy
cp ${../.}/* -r ./
${pkgs.lib.getExe self.formatter.${pkgs.stdenv.hostPlatform.system}} --ci --tree-root $PWD ./.
touch $out
''
Loading