Skip to content
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_SKIP_INSTALL doesn't seem to be working #1128

Closed
1 task done
nicknisi opened this issue Mar 22, 2022 · 2 comments
Closed
1 task done

HUSKY_SKIP_INSTALL doesn't seem to be working #1128

nicknisi opened this issue Mar 22, 2022 · 2 comments

Comments

@nicknisi
Copy link

Troubleshoot

It seems like HUSKY_SKIP_INSTALL, introduced in #178 is no longer preventing husky install in v7 (or since the change to set core.hooksPath rather than adding hooks to .git/hooks. Is this option no longer supported, or is there a way to prevent hooks installation for those who do not want them set up in their clones? Thanks!

@SleepWalker
Copy link

I think this is an answer:

image

https://github.com/typicode/husky/search?q=HUSKY_SKIP_INSTALL

@friederbluemle
Copy link

Related: #468
Unless you really have to use husky, I'd recommend to remove it from your repo, for two simple reasons:

  1. Running side effects as part of standard Git operations can be done without Husky (e.g. by editing default hooks in .git/hooks)
  2. Trying to enforce checks client side makes little sense, as these checks can easily be skipped with --no-verify, so Husky hooks are not a replacement for a proper CI setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants