husky hooks failing to execute as latest RC depends on /bin/bash
See original GitHub issueDescription
Pre-commit/push hooks failing
Version
GitHub Desktop version: 1.0.12
OS version: Windows 10
Steps to Reproduce
- Install Husky (v0.15)
- Add pre-commit hook
- Try to commit from Desktop client
Expected behavior: Pre-commit hook would run
Actual behavior: I get this error message: on pre-push I get this:
Reproduces how often: [What percentage of the time does it reproduce?]100%
Logs
I see no logs at the file paths mentioned in the comment.
Additional Information
The hooks work fine from the command line, just not from the client. This is why I believe it is an issue with Github Desktop.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
How to fix error 'not found husky-run' when committing new ...
I checked the package.json and it has husky as a dependency, and I can see the pre-commit hook configuration for Husky in the...
Read more >Husky - Git hooks
Modern native git hooks made easy. Husky improves your commits and more woof! You can use it to lint your commit messages, run...
Read more >Commit hooks are skipped due to PATH issues - Jira - Atlassian
At first I thought it's a problem with lint-staged or husky but eventually found that SourceTree on Mac just skips the commit hooks....
Read more >Configuration for Husky + pre-commit - DEV Community
Now we need to create a hook by command husky add . After executing the below command, a line npm test is added...
Read more >Installation - The Linux Documentation Project
It is a command language interpreter that executes commands read from the standard ... One major difference is that husky has no concept...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
husky
maintainer has switched back to the stable release ofhusky
for now which doesn’t depend on/bin/bash
, and I’m working with them to see if they can keep the next version running without requiringbash
on Windows, so I’m going to close this out and track the upstream issue.I’ve cross-referenced this information in a related issue against the repository: https://github.com/typicode/husky/issues/228