Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git commit command with error in macos 14.4.1 for M3. #775

Closed
KomachiSion opened this issue Jul 18, 2024 · 5 comments ยท Fixed by #776
Closed

git commit command with error in macos 14.4.1 for M3. #775

KomachiSion opened this issue Jul 18, 2024 · 5 comments ยท Fixed by #776
Labels
bug Something isn't working

Comments

@KomachiSion
Copy link

๐Ÿ”ง 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
@KomachiSion KomachiSion added the bug Something isn't working label Jul 18, 2024
@luizwhite
Copy link

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

@amochkin
Copy link

amochkin commented Jul 18, 2024

Try 1.6.19 or 1.6.18, hope it helps.

@KomachiSion
Copy link
Author

I think this bug is from PR #774.

but #774 close #733, maybe different.

@KomachiSion
Copy link
Author

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.

@mrexox
Copy link
Member

mrexox commented Jul 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants