-
Notifications
You must be signed in to change notification settings - Fork 59
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
Remove pre-push hooks #242
Comments
I still find it useful. I would rather disable it on a per-project basis. |
Or rather opt-in than opt-out |
I think the frustration comes from that it takes forever to run. For example, when working on js-multiaddr as the entire suite (node, browser and webworker) takes less than five seconds for me. But on ipfs/js-ipfs it takes 10 minutes to run through the entire thing, so usually I skip it. Having it be opt-in rather than opt-out sounds like a acceptable compromise though. |
Isn't it opt-in already? If you have a |
I was wrong. Even without a |
@vmx afaik, doing the following steps will make my pushes for a project run
Which is opt-out (I need to remove |
I tried locally the first package that felt sensible. git-validate seems to do exactly what I'd expect. If there is no So I propose switching to |
The `pre-push` package always runs `npm test` even if there is no `pre-push` section in your package.json. By switching to the `git-validate` package, running pre push hooks is completely opt-in. Nothing will be run if there is no `pre-push` section. This doesn't change the behaviour of repositories that have some `pre-push` targets set, as `git-validate` uses the same syntax as `pre-push`. This change relates to #242.
#244 introduced a small npm install bug, ipfs/js-ipfs#1444 (comment) |
Everyone gets frustrated using it and most folks just skip it anyways. We now have fast CI so it should be good to remove.
The text was updated successfully, but these errors were encountered: