From ed9a11da02f8b56d7d0d3f28f020bc2ad9aba293 Mon Sep 17 00:00:00 2001 From: zimward Date: Fri, 15 May 2026 20:23:12 +0200 Subject: [PATCH] checks/formatting: fix ci failure --- checks/formatting.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/checks/formatting.nix b/checks/formatting.nix index b399c670..6fde5839 100644 --- a/checks/formatting.nix +++ b/checks/formatting.nix @@ -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 ''