-
-
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(v7) fails when .git/hooks directory is missing #1003
Comments
I'm also seeing this in CI, but builds with Husky 6 seem to handle it gracefully? ↓ husky - not a Git repository, skipping hooks installation |
Similar to others, but I'm seeing this error instead after upgrading to v7:
This is happening on our CI as well since not all our Docker images there have the |
Exactly the same thing as @EvHaus happening on our projects. |
Alternatively, CI services set |
This already happened for me in v6. There is the section Disable Husky in CI/Docker. However, this didn't work because The only thing that worked is the following solution #867 (comment) which implies moving the but it does not work for all cases only on master |
My pipeline fails because my hooks are running on CI although they should not. Even though I've added .husky to .dockerignore.
|
I've published |
I've also updated docs with more options for CI/Docker |
Thanks that works now. |
I used |
For me the final solution was:
|
@typicode still getting the same issue with npm 7 (npm 6 is fine) |
Issue's been fixed for me. Using npm |
This fixes the following issue: typicode/husky#1003
still getting the same issue with |
This fixes the following issue: typicode/husky#1003 Co-authored-by: Akanksh Saxena <akanksh.saxena@adfinis.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still same issue for "husky": "^7.0.2", |
Hi team, this still fails for husky 7.0.4 |
i have the same issue in 7.0.4 - is there any update on how people have solved this? |
Same, with version 7.0.4 - fixed, but not fixed? |
It is really too bad. > husky install |
Since v7 , I have an error on docker with node 14.17
The text was updated successfully, but these errors were encountered: