-
Notifications
You must be signed in to change notification settings - Fork 41
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
more reliably disable husky for ci/cd environments #195
Comments
I should mention, since this repo uses husky v7, I was able to work around this issue by setting:
|
Thanks @dlants for capturing this issue. It looks like you found a valid workaround for your issue. I will talk to our PM to discuss getting this prioritized |
We also faced similar issue. when we are using jhipster framework application. npm install -g |
This should be resolved by #238 |
Description
@newrelic/node-native-metrics is a dependency of one of my projects. When running
yarn install --verbose
on the project, buildingnode-native-metrics
failed with:It seems like yarn tried to run the prepare script, which tried to run
husky install
. That in turn failed, because it did not find itself in a git repo.This behavior on husky has been a pain point for many people, and they've tried to fix it a bunch of times, though it seems unreliably:
typicode/husky#851
Their current docs provide several options for how to disable husky in various environments: https://typicode.github.io/husky/#/?id=disable-husky-in-cidockerprod
Expected Behavior
We do not attempt to run husky when installing the package as a dependency.
Your Environment
The text was updated successfully, but these errors were encountered: