From 7fdb67647e42efa5c87276801f83cc95bcc59464 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Thu, 18 Jul 2024 10:19:56 +0300 Subject: [PATCH 1/2] fix: use direct lefthook package --- internal/templates/hook.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/templates/hook.tmpl b/internal/templates/hook.tmpl index 676edaf2..633a2c7a 100644 --- a/internal/templates/hook.tmpl +++ b/internal/templates/hook.tmpl @@ -75,7 +75,7 @@ call_lefthook() mint run csjones/lefthook-plugin "$@" elif command -v npx >/dev/null 2>&1 then - npx lefthook "$@" + npx lefthook-${osArch}-${cpuArch} "$@" else echo "Can't find lefthook in PATH" {{- if .AssertLefthookInstalled}} From 542949425065ae9eb61470a7c1689e0942673fec Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Thu, 18 Jul 2024 10:21:24 +0300 Subject: [PATCH 2/2] chore: whitespace --- internal/templates/hook.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/templates/hook.tmpl b/internal/templates/hook.tmpl index 633a2c7a..fb0f3358 100644 --- a/internal/templates/hook.tmpl +++ b/internal/templates/hook.tmpl @@ -75,7 +75,7 @@ call_lefthook() mint run csjones/lefthook-plugin "$@" elif command -v npx >/dev/null 2>&1 then - npx lefthook-${osArch}-${cpuArch} "$@" + npx lefthook-${osArch}-${cpuArch} "$@" else echo "Can't find lefthook in PATH" {{- if .AssertLefthookInstalled}}