You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if you do it in that order, you'll get an error. This is because yarn install installs the husky precommit hook. Then when you run pre-commit install you get the error:
[ERROR] Cowardly refusing to install hooks with `core.hooksPath` set.
hint: `git config --unset-all core.hooksPath`
if you follow those directions... the husky pre-commit will no longer work and you'll end up not catching linting/formatting issues until opening a PR.
Steps to Resolve this Issue
It would be nice if we didn't need two different avenues for pre-commits - not sure the history on this. At the very least, if we just tell users to install pre-commit first, then run yarn install, it should fix this.
The text was updated successfully, but these errors were encountered:
Preliminary Checks
Summary
The documentation contributing docs tell users to
yarn install
THEN
pre-commit install
However, if you do it in that order, you'll get an error. This is because
yarn install
installs the husky precommit hook. Then when you runpre-commit install
you get the error:if you follow those directions... the husky pre-commit will no longer work and you'll end up not catching linting/formatting issues until opening a PR.
Steps to Resolve this Issue
It would be nice if we didn't need two different avenues for pre-commits - not sure the history on this. At the very least, if we just tell users to install
pre-commit
first, then runyarn install
, it should fix this.The text was updated successfully, but these errors were encountered: