evilmartians/lefthook

git commit command with error in macos `14.4.1` for M3.

KomachiSion opened this issue ยท 5 comments

๐Ÿ”ง Summary

git commit command with error in macos 14.4.1 for M3.

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ ๐ŸฅŠ lefthook v1.7.3  hook: pre-commit โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
npx: installed 1 in 1.106s
npx: command not found: lefthook-darwin-x64

Lefthook version

 npx lefthook version 
1.7.3

Steps to reproduce

run git commit command with lefthook 1.7.3

Expected results

commit successfully

Actual results

error: npx: command not found: lefthook-darwin-x64

Possible Solution

force downgrade to 1.7.2.

npm install lefthook@1.7.2 --save-dev

Logs / Screenshots

19:58:44.675: [nacos] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false checkout HEAD -- pom.xml
19:58:57.931: [nacos] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -f -- pom.xml
19:58:57.985: [nacos] git -c credential.helper= -c core.quotepath=false -c log.showSignature=false commit -F /private/var/folders/yj/8c9m_w0s4hv6zvryj59r75lr0000gp/T/git-commit-msg-.txt --
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ ๐ŸฅŠ lefthook v1.7.3  hook: pre-commit โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
npx: installed 1 in 1.106s
npx: command not found: lefthook-darwin-x64

similar issues here #773
I replied that the error still occurs

Try 1.6.19 or 1.6.18, hope it helps.

I think this bug is from PR #774.

but #774 close #733, maybe different.

Try 1.6.19 or 1.6.18, hope it helps.

I force downgrade to 1.7.2, it work well.
Before 1.7.3 released and auto-upgrade, git commit never failed.

Hey! Please checkout 1.7.4 release. This issue must be fixed there.