-
-
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 v9 lint-staged not triggered on pre-commit #1447
Comments
I also had the same problem |
Any chance your I thought mine was broken (which is how I came across this issue), but then I found an adjusted config from a similar repo, and it's working fine now. My change is just |
I also had the same problem |
I have been facing the same issue where Husky's execution suddenly stops working without apparent reason. After investigating in my repository, I noticed that this error occurs in all Husky hooks, specifically when the following scenario happens:
To temporarily solve this issue, the only effective measure I have found is to reinstall Husky every time the I hope these detailed steps clarify the issue I have been experiencing with Husky in my repository. |
Happens when I manually migrated v8 -> v9 |
Seems like the problem is Linux\Windows separator issue.
after
So if I change hooks path to |
Context
Please describe your issue and provide some context:
husky
9.0.11
lint-staged
15.2.2
Used https://github.com/uulm-mrm/git_hooks to get a basic husky+lint-staged+prettier+eslint setup.
If I run
npx lint-staged
myself in a terminal I see the expected scripts run but committing doesn't trigger the scripts and allows the commit to go through.Running
git config core.hooksPath
outputs.husky/_
git --version
outputgit version 2.45.1
troubleshooting section says to be on git
2.9
which feels like a mistake as2.45.1
is latestpackage.json
.husky/pre-commit
The text was updated successfully, but these errors were encountered: