-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Husky 9 - cannot execute binary file #1426
Comments
It suddenly happens to me since today. I only made the following system updates on my arch linux laptop with btrfs and restarted my pc:
So maybe it has something to do with the 6.9.1 kernel. It only happens with |
I have the same problem.
Resolved that after change pre-commit file encoding from UTF-16 (as it is as default after initializing husky) to UTF-8. I have done this in VS Code. Regards! |
It got fixed in the 6.9.x kernel I think. |
Troubleshoot
https://typicode.github.io/husky/troubleshoot.html
If you're migrating from husky 4, see:
https://typicode.github.io/husky/migrate-from-v4.html
Context
Please describe your issue and provide some context:
Fresh install with pnpm 8 and husky 9.
Just created the basic pre-commit hook from the docs (npm test) and when the hook runs i get this error
.husky/pre-commit: .husky/pre-commit: cannot execute binary file
husky - pre-commit script failed (code 126)
The text was updated successfully, but these errors were encountered: