question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

husky hooks failing to execute as latest RC depends on /bin/bash

See original GitHub issue

Description

Pre-commit/push hooks failing

Version

GitHub Desktop version: 1.0.12

OS version: Windows 10

Steps to Reproduce

  1. Install Husky (v0.15)
  2. Add pre-commit hook
  3. Try to commit from Desktop client

Expected behavior: Pre-commit hook would run

Actual behavior: I get this error message: image on pre-push I get this: image

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:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
shiftkeycommented, Feb 2, 2018

The husky maintainer has switched back to the stable release of husky 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 requiring bash on Windows, so I’m going to close this out and track the upstream issue.

2reactions
shiftkeycommented, Feb 1, 2018

I’ve cross-referenced this information in a related issue against the repository: https://github.com/typicode/husky/issues/228

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found