From 159a0c69d466a84508364291253ef13a92925b57 Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Wed, 2 Sep 2026 15:39:19 -0400 Subject: [PATCH] fix: run the Prettier pre-push hook through bash `pixi run ./prettier-check-and-fix.sh` hands the script to the OS to execute, which on Windows fails with `os error 193` -- not a valid Win32 application. The hook could therefore never run on a Windows checkout, and since lefthook fails the push when a job fails, no push from one could succeed either. Naming bash explicitly runs the same script the same way everywhere. Unrelated to the rest of this branch; it is here because it is what allowed the branch to be pushed at all. Co-Authored-By: Claude Opus 5 (1M context) --- lefthook.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 012c34a02..8d6792661 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -6,7 +6,10 @@ pre-push: jobs: - name: Run Prettier check; fix if check fails root: frontend/ - run: pixi run ./prettier-check-and-fix.sh + # Invoked through bash explicitly: on Windows, pixi hands the script to + # the OS to execute and gets `os error 193` (not a valid Win32 + # application), so the hook could never run there. + run: pixi run bash ./prettier-check-and-fix.sh - name: Run ESLint check root: frontend/