-
Notifications
You must be signed in to change notification settings - Fork 352
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
Inactive git pre-commit Husky hook #743
Comments
If the Husky hook were to be reactivated, users on Windows could avoid issues by setting the environment variable |
Husky 8 is more flexible in defining the hook contents, so it would be possible to commit a changed dist/ directory content only if it had changed, ignoring the end-of-line characters. |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
The git husky hook in https://github.com/cypress-io/github-action/blob/master/package.json is not being triggered:
when changes are made to index.js they are not automatically causing dist/index.js to be updated, making the changes practically ineffective.
Husky v5.0.0 introduced breaking changes, including the fact that it no longer autoinstalls.
It seems that when Husky was updated from v4 to v7 there was no reconfiguration done in the repo.
Suggested change
To re-activate Husky would require following the migration steps (see https://typicode.github.io/husky/).
I found two disadvantages of doing this:
So I suggest instead to remove the Husky configuration and solve the issue through:
The text was updated successfully, but these errors were encountered: