From 98f4fef7fd7b4a77245db12e33616023162bc6d9 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 24 Apr 2025 13:46:15 -0400 Subject: [PATCH] format: Fix failing due to no cache access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We change `$HOME` to something not writable, but newer treefmt fails if it cannot write. We could use a tmpdir, but there’s not much point to a cache that will be removed, as just add the flag to not use the cache. --- format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format b/format index 64ba7c56..18262040 100755 --- a/format +++ b/format @@ -32,4 +32,4 @@ git_root=$(git rev-parse --show-toplevel) git ls-files -z --cached --others --full-name -- "${files[@]}" | grep -z '\.nix$' | sed -z "s|^|$git_root/|" | - xargs -0 treefmt "${nixfmt_args[@]}" + xargs -0 treefmt --no-cache "${nixfmt_args[@]}"